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
FieldsModifier and TypeFieldDescriptionprivate static final Direction[]private final BlockPos.MutableBlockPosFields inherited from class net.minecraft.world.level.lighting.LayerLightEngine
chunkSource, layer, SELF_SOURCE, storage -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckNeighborsAfterUpdate(long p_75494_, int p_75495_, boolean p_75496_) protected intcomputeLevelFromNeighbor(long p_75505_, long p_75506_, int p_75507_) protected intgetComputedLevel(long p_75498_, long p_75499_, int p_75500_) private intgetLightEmission(long p_75509_) voidonBlockEmissionIncrease(BlockPos p_75502_, int p_75503_) intMethods 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, updateSectionStatusMethods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdatesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
checkNeighborsAfterUpdatein classDynamicGraphMinFixedPoint
-
getComputedLevel
protected int getComputedLevel(long p_75498_, long p_75499_, int p_75500_) -
onBlockEmissionIncrease
- Specified by:
onBlockEmissionIncreasein interfaceLightEventListener- Overrides:
onBlockEmissionIncreasein classLayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
-
queuedUpdateSize
public int queuedUpdateSize()- Specified by:
queuedUpdateSizein classLayerLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap,BlockLightSectionStorage>
-