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 LightEngine<?, ?> static final LevelLightEngineprotected final LevelHeightAccessorstatic final intprivate final LightEngine<?, ?> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLevelLightEngine(LightChunkGetter pLightChunkGetter, boolean pBlockLight, boolean pSkyLight) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos p_75823_) getDebugData(LightLayer pLightLayer, SectionPos pSectionPos) getDebugSectionType(LightLayer pLightLayer, SectionPos pSectionPos) getLayerListener(LightLayer pType) intintintintgetRawBrightness(BlockPos pBlockPos, int pAmount) booleanbooleanlightOnInColumn(long pColumnPos) voidpropagateLightSources(ChunkPos p_284998_) voidqueueSectionData(LightLayer pLightLayer, SectionPos pSectionPos, DataLayer pDataLayer) voidretainData(ChunkPos pPos, boolean pRetain) intvoidsetLightEnabled(ChunkPos p_285439_, boolean p_285012_) voidupdateSectionStatus(SectionPos pPos, boolean pIsEmpty) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.lighting.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
public LayerLightSectionStorage.SectionType getDebugSectionType(LightLayer pLightLayer, SectionPos pSectionPos) -
queueSectionData
public void queueSectionData(LightLayer pLightLayer, SectionPos pSectionPos, @Nullable DataLayer pDataLayer) -
retainData
-
getRawBrightness
-
lightOnInColumn
public boolean lightOnInColumn(long pColumnPos) -
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-