Class LevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
- All Implemented Interfaces:
LightEventListener
- Direct Known Subclasses:
ThreadedLevelLightEngine
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final @Nullable LightEngine<?, ?> static final LevelLightEngineprotected final LevelHeightAccessorstatic final intprivate final @Nullable LightEngine<?, ?> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLevelLightEngine(LightChunkGetter chunkSource, boolean hasBlockLight, boolean hasSkyLight) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) getDebugData(LightLayer layer, SectionPos pos) getDebugSectionType(LightLayer layer, SectionPos pos) getLayerListener(LightLayer layer) intintintintgetRawBrightness(BlockPos pos, int skyDampen) booleanbooleanlightOnInColumn(long sectionZeroNode) voidvoidqueueSectionData(LightLayer layer, SectionPos pos, @Nullable DataLayer data) voidretainData(ChunkPos pos, boolean retain) intvoidsetLightEnabled(ChunkPos pos, boolean enable) voidupdateSectionStatus(SectionPos pos, boolean sectionEmpty) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LightEventListener
updateSectionStatus
-
Field Details
-
LIGHT_SECTION_PADDING
public static final int LIGHT_SECTION_PADDING- See Also:
-
EMPTY
-
levelHeightAccessor
-
blockEngine
-
skyEngine
-
-
Constructor Details
-
LevelLightEngine
-
LevelLightEngine
private LevelLightEngine()
-
-
Method Details
-
checkBlock
- Specified by:
checkBlockin interfaceLightEventListener
-
hasLightWork
public boolean hasLightWork()- Specified by:
hasLightWorkin interfaceLightEventListener
-
runLightUpdates
public int runLightUpdates()- Specified by:
runLightUpdatesin interfaceLightEventListener
-
updateSectionStatus
- Specified by:
updateSectionStatusin interfaceLightEventListener
-
setLightEnabled
- Specified by:
setLightEnabledin interfaceLightEventListener
-
propagateLightSources
- Specified by:
propagateLightSourcesin interfaceLightEventListener
-
getLayerListener
-
getDebugData
-
getDebugSectionType
-
queueSectionData
-
retainData
-
getRawBrightness
-
lightOnInColumn
public boolean lightOnInColumn(long sectionZeroNode) -
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-