net.minecraft.server.level

public class ThreadedLevelLightEngine

extends LevelLightEngine implements AutoCloseable

All mapped superinterfaces:

LightEventListener

aii
net.minecraft.server.level.ThreadedLevelLightEngine
net.minecraft.class_3227
net.minecraft.server.world.ServerLightingProvider
net.minecraft.src.C_15_
net.minecraft.server.level.LightEngineThreaded

Field summary

Modifier and TypeField
public static final int
a
DEFAULT_BATCH_SIZE
field_44692
field_44692
f_283844_
private static final org.slf4j.Logger
d
LOGGER
field_14020
LOGGER
f_9296_
private final ProcessorMailbox<Runnable>
e
taskMailbox
field_17255
processor
f_9297_
private final it.unimi.dsi.fastutil.objects.ObjectList<com.mojang.datafixers.util.Pair<ThreadedLevelLightEngine$TaskType, Runnable>>
f
lightTasks
field_17256
pendingTasks
f_9298_
private final ChunkMap
g
chunkMap
field_17257
chunkStorage
f_9299_
private final ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>>
h
sorterMailbox
field_17259
executor
f_9300_
private final int
i
taskPerBatch
field_17260
taskBatchSize
f_9301_
private final AtomicBoolean
j
scheduled
field_18812
ticking
f_9302_

Constructor summary

ModifierConstructor
public (LightChunkGetter chunkProvider, ChunkMap chunkStorage, boolean hasBlockLight, ProcessorMailbox<Runnable> processor, ProcessorHandle<ChunkTaskPriorityQueueSorter$Message<Runnable>> executor)

Method summary

Modifier and TypeMethod
public void
close()
close()
close()
public int
a()
runLightUpdates()
method_15516()
doLightUpdates()
m_9323_()
public void
a(gu arg0)
checkBlock(BlockPos arg0)
method_15513(class_2338 arg0)
checkBlock(BlockPos arg0)
m_7174_(C_4675_ arg0)
protected void
a(clt arg0)
updateChunkStatus(ChunkPos arg0)
method_20386(class_1923 arg0)
updateChunkStatus(ChunkPos pos)
m_9330_(C_1560_ arg0)
public void
a(hx arg0, boolean arg1)
updateSectionStatus(SectionPos arg0, boolean arg1)
method_15551(class_4076 arg0, boolean arg1)
setSectionStatus(ChunkSectionPos arg0, boolean arg1)
m_6191_(C_4710_ p_9365_, boolean arg1)
public void
b(clt arg0)
propagateLightSources(ChunkPos arg0)
method_51471(class_1923 arg0)
propagateLight(ChunkPos arg0)
m_142519_(C_1560_ arg0)
public void
a(clt arg0, boolean arg1)
setLightEnabled(ChunkPos arg0, boolean arg1)
method_15512(class_1923 arg0, boolean arg1)
setColumnEnabled(ChunkPos arg0, boolean arg1)
m_9335_(C_1560_ p_9337_, boolean arg1)
public void
a(cmv arg0, hx arg1, ded 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)
m_284126_(C_1607_ p_285496_, C_4710_ p_285495_, C_2131_ arg2)
private void
a(int arg0, int arg1, aii$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)
m_9312_(int p_9314_, int p_9315_, C_15_$C_16_ p_9316_, Runnable arg3)
private void
a(int arg0, int arg1, IntSupplier arg2, aii$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)
m_9317_(int p_9319_, int p_9320_, IntSupplier p_9321_, C_15_$C_16_ p_9322_, Runnable arg4)
public void
b(clt arg0, boolean arg1)
retainData(ChunkPos arg0, boolean arg1)
method_20601(class_1923 arg0, boolean arg1)
setRetainData(ChunkPos arg0, boolean arg1)
m_6462_(C_1560_ p_9371_, boolean arg1)
public CompletableFuture<ChunkAccess>
a(ddx arg0, boolean arg1)
initializeLight(ChunkAccess arg0, boolean arg1)
method_51285(class_2791 arg0, boolean arg1)
initializeLight(Chunk chunk, boolean arg1)
m_284138_(C_2116_ p_285441_, boolean arg1)
public CompletableFuture<ChunkAccess>
b(ddx arg0, boolean arg1)
lightChunk(ChunkAccess arg0, boolean arg1)
method_17310(class_2791 arg0, boolean arg1)
light(Chunk chunk, boolean excludeBlocks)
m_9353_(C_2116_ p_9355_, boolean arg1)
public void
b()
tryScheduleUpdate()
method_17303()
tick()
m_9409_()
private void
f()
runUpdate()
method_14277()
runTasks()
m_9366_()