Class LayerLightEngine<M extends DataLayerStorageMap<M>,S extends LayerLightSectionStorage<M>> 
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.world.level.lighting.LayerLightEngine<M,S> 
- All Implemented Interfaces:
- LayerLightEventListener,- LightEventListener
- Direct Known Subclasses:
- BlockLightEngine,- SkyLightEngine
public abstract class LayerLightEngine<M extends DataLayerStorageMap<M>,S extends LayerLightSectionStorage<M>> 
extends DynamicGraphMinFixedPoint
implements LayerLightEventListener
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.world.level.lighting.LayerLightEventListenerLayerLightEventListener.DummyLightLayerEventListener
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprotected final LightChunkGetterprivate static final Direction[]private final BlockGetter[]private final long[]protected final LightLayerprotected final BlockPos.MutableBlockPosprivate booleanstatic final longprotected final S
- 
Constructor SummaryConstructorsConstructorDescriptionLayerLightEngine(LightChunkGetter p_75640_, LightLayer p_75641_, S p_75642_) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidcheckBlock(BlockPos p_75686_) protected voidcheckNode(long p_75708_) private voidprotected intcomputeLevelFromNeighbor(long p_75696_, long p_75697_, int p_75698_) voidenableLightSources(ChunkPos p_75676_, boolean p_75677_) private BlockGettergetChunk(int p_75645_, int p_75646_) protected intgetComputedLevel(long p_75657_, long p_75658_, int p_75659_) getDataLayerData(SectionPos p_75690_) getDebugData(long p_75694_) protected intgetLevel(long p_75705_) protected intstatic intgetLightBlockInto(BlockGetter p_75668_, BlockState p_75669_, BlockPos p_75670_, BlockState p_75671_, BlockPos p_75672_, Direction p_75673_, int p_75674_) intgetLightValue(BlockPos p_75703_) protected VoxelShapegetShape(BlockState p_75679_, long p_75680_, Direction p_75681_) protected BlockStategetStateAndOpacity(long p_75665_, org.apache.commons.lang3.mutable.MutableInt p_75666_) booleanprotected booleanisSource(long p_75652_) voidonBlockEmissionIncrease(BlockPos p_75687_, int p_75688_) abstract intprotected voidqueueSectionData(long p_75661_, DataLayer p_75662_, boolean p_75663_) voidretainData(ChunkPos p_75700_, boolean p_75701_) intrunUpdates(int p_75648_, boolean p_75649_, boolean p_75650_) protected voidsetLevel(long p_75654_, int p_75655_) voidupdateSectionStatus(SectionPos p_75692_, boolean p_75693_) Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPointcheckEdge, checkNeighbor, checkNeighborsAfterUpdate, getQueueSize, hasWork, removeFromQueue, removeIf, runUpdatesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.lighting.LightEventListenerupdateSectionStatus
- 
Field Details- 
SELF_SOURCEpublic static final long SELF_SOURCE- See Also:
 
- 
DIRECTIONS
- 
chunkSource
- 
layer
- 
storage
- 
runningLightUpdatesprivate boolean runningLightUpdates
- 
pos
- 
CACHE_SIZEprivate static final int CACHE_SIZE- See Also:
 
- 
lastChunkPosprivate final long[] lastChunkPos
- 
lastChunk
 
- 
- 
Constructor Details- 
LayerLightEngine
 
- 
- 
Method Details- 
checkNodeprotected void checkNode(long p_75708_) - Overrides:
- checkNodein class- DynamicGraphMinFixedPoint
 
- 
getChunk
- 
clearCacheprivate void clearCache()
- 
getStateAndOpacityprotected BlockState getStateAndOpacity(long p_75665_, @Nullable org.apache.commons.lang3.mutable.MutableInt p_75666_) 
- 
getShape
- 
getLightBlockIntopublic static int getLightBlockInto(BlockGetter p_75668_, BlockState p_75669_, BlockPos p_75670_, BlockState p_75671_, BlockPos p_75672_, Direction p_75673_, int p_75674_) 
- 
isSourceprotected boolean isSource(long p_75652_) - Specified by:
- isSourcein class- DynamicGraphMinFixedPoint
 
- 
getComputedLevelprotected int getComputedLevel(long p_75657_, long p_75658_, int p_75659_) - Specified by:
- getComputedLevelin class- DynamicGraphMinFixedPoint
 
- 
getLevelprotected int getLevel(long p_75705_) - Specified by:
- getLevelin class- DynamicGraphMinFixedPoint
 
- 
getLevel
- 
setLevelprotected void setLevel(long p_75654_, int p_75655_) - Specified by:
- setLevelin class- DynamicGraphMinFixedPoint
 
- 
computeLevelFromNeighborprotected int computeLevelFromNeighbor(long p_75696_, long p_75697_, int p_75698_) - Specified by:
- computeLevelFromNeighborin class- DynamicGraphMinFixedPoint
 
- 
hasLightWorkpublic boolean hasLightWork()- Specified by:
- hasLightWorkin interface- LightEventListener
 
- 
runUpdatespublic int runUpdates(int p_75648_, boolean p_75649_, boolean p_75650_) - Specified by:
- runUpdatesin interface- LightEventListener
 
- 
queueSectionData
- 
getDataLayerData- Specified by:
- getDataLayerDatain interface- LayerLightEventListener
 
- 
getLightValue- Specified by:
- getLightValuein interface- LayerLightEventListener
 
- 
getDebugData
- 
checkBlock- Specified by:
- checkBlockin interface- LightEventListener
 
- 
onBlockEmissionIncrease- Specified by:
- onBlockEmissionIncreasein interface- LightEventListener
 
- 
updateSectionStatus- Specified by:
- updateSectionStatusin interface- LightEventListener
 
- 
enableLightSources- Specified by:
- enableLightSourcesin interface- LightEventListener
 
- 
retainData
- 
queuedUpdateSizepublic abstract int queuedUpdateSize()- Overrides:
- queuedUpdateSizein class- DynamicGraphMinFixedPoint
 
 
-