Package net.minecraft.world.lighting
Class BlockLightEngine
- java.lang.Object
-
- net.minecraft.world.lighting.LevelBasedGraph
-
- net.minecraft.world.lighting.LightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
- net.minecraft.world.lighting.BlockLightEngine
-
- All Implemented Interfaces:
ILightListener,IWorldLightListener
public final class BlockLightEngine extends LightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.world.lighting.IWorldLightListener
IWorldLightListener.Dummy
-
-
Field Summary
Fields Modifier and Type Field Description private static Direction[]DIRECTIONSprivate BlockPos.Mutablepos-
Fields inherited from class net.minecraft.world.lighting.LightEngine
chunkSource, layer, storage
-
-
Constructor Summary
Constructors Constructor Description BlockLightEngine(IChunkLightProvider p_i51301_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)protected intcomputeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)protected intgetComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)private intgetLightEmission(long p_215635_1_)voidonBlockEmissionIncrease(BlockPos p_215623_1_, int p_215623_2_)intqueuedUpdateSize()-
Methods inherited from class net.minecraft.world.lighting.LightEngine
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.lighting.LevelBasedGraph
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.lighting.ILightListener
updateSectionStatus
-
-
-
-
Field Detail
-
DIRECTIONS
private static final Direction[] DIRECTIONS
-
pos
private final BlockPos.Mutable pos
-
-
Constructor Detail
-
BlockLightEngine
public BlockLightEngine(IChunkLightProvider p_i51301_1_)
-
-
Method Detail
-
getLightEmission
private int getLightEmission(long p_215635_1_)
-
computeLevelFromNeighbor
protected int computeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)- Overrides:
computeLevelFromNeighborin classLightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
checkNeighborsAfterUpdate
protected void checkNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)- Specified by:
checkNeighborsAfterUpdatein classLevelBasedGraph
-
getComputedLevel
protected int getComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)- Overrides:
getComputedLevelin classLightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
onBlockEmissionIncrease
public void onBlockEmissionIncrease(BlockPos p_215623_1_, int p_215623_2_)
- Overrides:
onBlockEmissionIncreasein classLightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
queuedUpdateSize
public int queuedUpdateSize()
- Specified by:
queuedUpdateSizein classLightEngine<BlockLightStorage.StorageMap,BlockLightStorage>
-
-