类 ThreadedLevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
net.minecraft.server.level.ThreadedLevelLightEngine
- 所有已实现的接口:
AutoCloseable
,LightEventListener
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final ChunkMap
private final ConsecutiveExecutor
static final int
private final it.unimi.dsi.fastutil.objects.ObjectList
<com.mojang.datafixers.util.Pair<ThreadedLevelLightEngine.TaskType, Runnable>> private static final org.slf4j.Logger
private final AtomicBoolean
private final ChunkTaskDispatcher
private final int
从类继承的字段 net.minecraft.world.level.lighting.LevelLightEngine
EMPTY, levelHeightAccessor, LIGHT_SECTION_PADDING
-
构造器概要
构造器构造器说明ThreadedLevelLightEngine
(LightChunkGetter p_9305_, ChunkMap p_9306_, boolean p_9307_, ConsecutiveExecutor p_364647_, ChunkTaskDispatcher p_362920_) -
方法概要
修饰符和类型方法说明private void
addTask
(int p_9318_, int p_9319_, IntSupplier p_9320_, ThreadedLevelLightEngine.TaskType p_9321_, Runnable p_9322_) private void
addTask
(int p_9313_, int p_9314_, ThreadedLevelLightEngine.TaskType p_9315_, Runnable p_9316_) void
checkBlock
(BlockPos p_9357_) void
close()
initializeLight
(ChunkAccess p_285128_, boolean p_285441_) lightChunk
(ChunkAccess p_9354_, boolean p_9355_) void
propagateLightSources
(ChunkPos p_285029_) void
queueSectionData
(LightLayer p_285046_, SectionPos p_285496_, DataLayer p_285495_) void
retainData
(ChunkPos p_9370_, boolean p_9371_) int
private void
void
setLightEnabled
(ChunkPos p_9336_, boolean p_9337_) void
protected void
updateChunkStatus
(ChunkPos p_9331_) void
updateSectionStatus
(SectionPos p_9364_, boolean p_9365_) waitForPendingTasks
(int p_297330_, int p_298866_) 从类继承的方法 net.minecraft.world.level.lighting.LevelLightEngine
getDebugData, getDebugSectionType, getLayerListener, getLightSectionCount, getMaxLightSection, getMinLightSection, getRawBrightness, hasLightWork, lightOnInColumn
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.world.level.lighting.LightEventListener
updateSectionStatus
-
字段详细资料
-
DEFAULT_BATCH_SIZE
public static final int DEFAULT_BATCH_SIZE- 另请参阅:
-
LOGGER
private static final org.slf4j.Logger LOGGER -
consecutiveExecutor
-
lightTasks
private final it.unimi.dsi.fastutil.objects.ObjectList<com.mojang.datafixers.util.Pair<ThreadedLevelLightEngine.TaskType,Runnable>> lightTasks -
chunkMap
-
taskDispatcher
-
taskPerBatch
private final int taskPerBatch- 另请参阅:
-
scheduled
-
-
构造器详细资料
-
ThreadedLevelLightEngine
public ThreadedLevelLightEngine(LightChunkGetter p_9305_, ChunkMap p_9306_, boolean p_9307_, ConsecutiveExecutor p_364647_, ChunkTaskDispatcher p_362920_)
-
-
方法详细资料
-
close
public void close()- 指定者:
close
在接口中AutoCloseable
-
runLightUpdates
public int runLightUpdates()- 指定者:
runLightUpdates
在接口中LightEventListener
- 覆盖:
runLightUpdates
在类中LevelLightEngine
-
checkBlock
- 指定者:
checkBlock
在接口中LightEventListener
- 覆盖:
checkBlock
在类中LevelLightEngine
-
updateChunkStatus
-
updateSectionStatus
- 指定者:
updateSectionStatus
在接口中LightEventListener
- 覆盖:
updateSectionStatus
在类中LevelLightEngine
-
propagateLightSources
- 指定者:
propagateLightSources
在接口中LightEventListener
- 覆盖:
propagateLightSources
在类中LevelLightEngine
-
setLightEnabled
- 指定者:
setLightEnabled
在接口中LightEventListener
- 覆盖:
setLightEnabled
在类中LevelLightEngine
-
queueSectionData
public void queueSectionData(LightLayer p_285046_, SectionPos p_285496_, @Nullable DataLayer p_285495_) - 覆盖:
queueSectionData
在类中LevelLightEngine
-
addTask
private void addTask(int p_9313_, int p_9314_, ThreadedLevelLightEngine.TaskType p_9315_, Runnable p_9316_) -
addTask
private void addTask(int p_9318_, int p_9319_, IntSupplier p_9320_, ThreadedLevelLightEngine.TaskType p_9321_, Runnable p_9322_) -
retainData
- 覆盖:
retainData
在类中LevelLightEngine
-
initializeLight
-
lightChunk
-
tryScheduleUpdate
public void tryScheduleUpdate() -
runUpdate
private void runUpdate() -
waitForPendingTasks
-