Class BlockLightEngine
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.world.level.lighting.LayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
net.minecraft.world.level.lighting.BlockLightEngine
- All Implemented Interfaces:
LayerLightEventListener
,LightEventListener
public final class BlockLightEngine
extends LayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.world.level.lighting.LayerLightEventListener
LayerLightEventListener.DummyLightLayerEventListener
-
Field Summary
Fields inherited from class net.minecraft.world.level.lighting.LayerLightEngine
chunkSource, layer, SELF_SOURCE, storage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkNeighborsAfterUpdate(long p_75494_, int p_75495_, boolean p_75496_)
protected int
computeLevelFromNeighbor(long p_75505_, long p_75506_, int p_75507_)
protected int
getComputedLevel(long p_75498_, long p_75499_, int p_75500_)
private int
getLightEmission(long p_75509_)
void
onBlockEmissionIncrease(BlockPos p_75502_, int p_75503_)
int
Methods inherited from class net.minecraft.world.level.lighting.LayerLightEngine
checkBlock, checkNode, enableLightSources, getDataLayerData, getDebugData, getLevel, getLevel, getLightBlockInto, getLightValue, getShape, getStateAndOpacity, hasLightWork, isSource, queueSectionData, retainData, runUpdates, setLevel, updateSectionStatus
Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.lighting.LightEventListener
updateSectionStatus
-
Field Details
-
DIRECTIONS
-
pos
-
-
Constructor Details
-
BlockLightEngine
-
-
Method Details
-
getLightEmission
private int getLightEmission(long p_75509_) -
computeLevelFromNeighbor
protected int computeLevelFromNeighbor(long p_75505_, long p_75506_, int p_75507_) -
checkNeighborsAfterUpdate
protected void checkNeighborsAfterUpdate(long p_75494_, int p_75495_, boolean p_75496_)- Specified by:
checkNeighborsAfterUpdate
in classDynamicGraphMinFixedPoint
-
getComputedLevel
protected int getComputedLevel(long p_75498_, long p_75499_, int p_75500_) -
onBlockEmissionIncrease
- Specified by:
onBlockEmissionIncrease
in interfaceLightEventListener
- Overrides:
onBlockEmissionIncrease
in classLayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
-
queuedUpdateSize
public int queuedUpdateSize()- Specified by:
queuedUpdateSize
in classLayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
-