Class BlockLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
net.minecraft.world.level.lighting.BlockLightEngine
- All Implemented Interfaces:
LayerLightEventListener, LightEventListener
public final class BlockLightEngine
extends LightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
-
Nested Class Summary
Nested classes/interfaces inherited from class LightEngine
LightEngine.QueueEntryNested classes/interfaces inherited from interface LayerLightEventListener
LayerLightEventListener.DummyLightLayerEventListener -
Field Summary
FieldsFields inherited from class LightEngine
chunkSource, MAX_LEVEL, MIN_OPACITY, PROPAGATION_DIRECTIONS, PULL_LIGHT_IN_ENTRY, storage -
Constructor Summary
ConstructorsConstructorDescriptionBlockLightEngine(LightChunkGetter chunkSource) BlockLightEngine(LightChunkGetter chunkSource, BlockLightSectionStorage storage) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckNode(long blockNode) private intgetEmission(long blockNode, BlockState state) protected voidpropagateDecrease(long fromNode, long decreaseData) protected voidpropagateIncrease(long fromNode, long increaseData, int fromLevel) voidMethods inherited from class LightEngine
checkBlock, enqueueDecrease, enqueueIncrease, getChunk, getDataLayerData, getDebugData, getDebugSectionType, getLightBlockInto, getLightValue, getOcclusionShape, getOpacity, getState, hasDifferentLightProperties, hasDifferentLightProperties, hasLightWork, isEmptyShape, queueSectionData, retainData, runLightUpdates, setLightEnabled, shapeOccludes, updateSectionStatusMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LightEventListener
updateSectionStatus
-
Field Details
-
mutablePos
-
-
Constructor Details
-
BlockLightEngine
-
BlockLightEngine
-
-
Method Details
-
checkNode
protected void checkNode(long blockNode) - Specified by:
checkNodein classLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
-
propagateIncrease
protected void propagateIncrease(long fromNode, long increaseData, int fromLevel) - Specified by:
propagateIncreasein classLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
-
propagateDecrease
protected void propagateDecrease(long fromNode, long decreaseData) - Specified by:
propagateDecreasein classLightEngine<BlockLightSectionStorage.BlockDataLayerStorageMap, BlockLightSectionStorage>
-
getEmission
-
propagateLightSources
-