net.minecraft.server.level

public class ThreadedLevelLightEngine

extends LevelLightEngine implements AutoCloseable

All mapped superinterfaces:

LightEventListener

arg
net.minecraft.server.level.ThreadedLevelLightEngine
net.minecraft.class_3227
net.minecraft.server.world.ServerLightingProvider
net.minecraft.server.level.LightEngineThreaded

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_BATCH_SIZE
field_44692
field_44692
private static final org.slf4j.Logger
e
LOGGER
field_14020
LOGGER
private final ConsecutiveExecutor
f
consecutiveExecutor
field_54049
processor
private final it.unimi.dsi.fastutil.objects.ObjectList<com.mojang.datafixers.util.Pair<ThreadedLevelLightEngine$TaskType, Runnable>>
g
lightTasks
field_17256
pendingTasks
private final ChunkMap
h
chunkMap
field_17257
chunkLoadingManager
private final ChunkTaskDispatcher
i
taskDispatcher
field_54050
executor
private final int
j
taskPerBatch
field_17260
taskBatchSize
private final AtomicBoolean
k
scheduled
field_18812
ticking

Constructor summary

ModifierConstructor
public (LightChunkGetter chunkProvider, ChunkMap chunkLoadingManager, boolean hasBlockLight, ConsecutiveExecutor processor, ChunkTaskDispatcher executor)

Method summary

Modifier and TypeMethod
public void
close()
close()
public int
a()
runLightUpdates()
method_15516()
doLightUpdates()
public void
a(ji arg0)
checkBlock(BlockPos arg0)
method_15513(class_2338 arg0)
checkBlock(BlockPos arg0)
protected void
a(dfp arg0)
updateChunkStatus(ChunkPos arg0)
method_20386(class_1923 arg0)
updateChunkStatus(ChunkPos pos)
public void
a(kk arg0, boolean arg1)
updateSectionStatus(SectionPos arg0, boolean arg1)
method_15551(class_4076 arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
public void
b(dfp arg0)
propagateLightSources(ChunkPos arg0)
method_51471(class_1923 arg0)
propagateLight(ChunkPos arg0)
public void
a(dfp arg0, boolean arg1)
setLightEnabled(ChunkPos arg0, boolean arg1)
method_15512(class_1923 arg0, boolean arg1)
setColumnEnabled(ChunkPos arg0, boolean arg1)
public void
a(dgs arg0, kk arg1, dyy arg2)
queueSectionData(LightLayer arg0, SectionPos arg1, DataLayer arg2)
method_15558(class_1944 arg0, class_4076 arg1, class_2804 arg2)
enqueueSectionData(LightType arg0, ChunkSectionPos arg1, ChunkNibbleArray arg2)
private void
a(int arg0, int arg1, arg$a arg2, Runnable arg3)
addTask(int arg0, int arg1, ThreadedLevelLightEngine$TaskType arg2, Runnable arg3)
method_17308(int arg0, int arg1, class_3227$class_3901 arg2, Runnable arg3)
enqueue(int x, int z, ServerLightingProvider$Stage stage, Runnable task)
private void
a(int arg0, int arg1, IntSupplier arg2, arg$a arg3, Runnable arg4)
addTask(int arg0, int arg1, IntSupplier arg2, ThreadedLevelLightEngine$TaskType arg3, Runnable arg4)
method_17307(int arg0, int arg1, IntSupplier arg2, class_3227$class_3901 arg3, Runnable arg4)
enqueue(int x, int z, IntSupplier completedLevelSupplier, ServerLightingProvider$Stage stage, Runnable task)
public void
b(dfp arg0, boolean arg1)
retainData(ChunkPos arg0, boolean arg1)
method_20601(class_1923 arg0, boolean arg1)
setRetainData(ChunkPos arg0, boolean arg1)
public CompletableFuture<ChunkAccess>
a(dyt arg0, boolean arg1)
initializeLight(ChunkAccess arg0, boolean arg1)
method_51285(class_2791 arg0, boolean arg1)
initializeLight(Chunk chunk, boolean arg1)
public CompletableFuture<ChunkAccess>
b(dyt arg0, boolean arg1)
lightChunk(ChunkAccess arg0, boolean arg1)
method_17310(class_2791 arg0, boolean arg1)
light(Chunk chunk, boolean excludeBlocks)
public void
b()
tryScheduleUpdate()
method_17303()
tick()
private void
f()
runUpdate()
method_14277()
runTasks()
public CompletableFuture<?>
a(int arg0, int arg1)
waitForPendingTasks(int arg0, int arg1)
method_53694(int arg0, int arg1)
enqueue(int x, int z)