Package net.minecraft.world.lighting
Class SkyLightEngine
- java.lang.Object
-
- net.minecraft.world.lighting.LevelBasedGraph
-
- net.minecraft.world.lighting.LightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
- net.minecraft.world.lighting.SkyLightEngine
-
- All Implemented Interfaces:
ILightListener
,IWorldLightListener
public final class SkyLightEngine extends LightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
-
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[]
DIRECTIONS
private static Direction[]
HORIZONTALS
-
Fields inherited from class net.minecraft.world.lighting.LightEngine
chunkSource, layer, pos, storage
-
-
Constructor Summary
Constructors Constructor Description SkyLightEngine(IChunkLightProvider p_i51289_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)
protected void
checkNode(long p_215473_1_)
protected int
computeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)
protected int
getComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)
java.lang.String
getDebugData(long p_215614_1_)
int
queuedUpdateSize()
-
Methods inherited from class net.minecraft.world.lighting.LightEngine
checkBlock, enableLightSources, getDataLayerData, getLevel, getLevel, getLightBlockInto, getLightValue, getShape, getStateAndOpacity, hasLightWork, isSource, onBlockEmissionIncrease, 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
-
-
-
-
Constructor Detail
-
SkyLightEngine
public SkyLightEngine(IChunkLightProvider p_i51289_1_)
-
-
Method Detail
-
computeLevelFromNeighbor
protected int computeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)
- Overrides:
computeLevelFromNeighbor
in classLightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
checkNeighborsAfterUpdate
protected void checkNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)
- Specified by:
checkNeighborsAfterUpdate
in classLevelBasedGraph
-
getComputedLevel
protected int getComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)
- Overrides:
getComputedLevel
in classLightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
checkNode
protected void checkNode(long p_215473_1_)
- Overrides:
checkNode
in classLightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
getDebugData
public java.lang.String getDebugData(long p_215614_1_)
- Overrides:
getDebugData
in classLightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
queuedUpdateSize
public int queuedUpdateSize()
- Specified by:
queuedUpdateSize
in classLightEngine<SkyLightStorage.StorageMap,SkyLightStorage>
-
-