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<?, ?> protected final LevelHeightAccessorstatic final intprivate final LightEngine<?, ?> -
Constructor Summary
ConstructorsConstructorDescriptionLevelLightEngine(LightChunkGetter lightChunkGetter, boolean blockLight, boolean skyLight) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos pos) getDebugData(LightLayer lightLayer, SectionPos sectionPos) getDebugSectionType(LightLayer lightLayer, SectionPos sectionPos) getLayerListener(LightLayer type) intintintintgetRawBrightness(BlockPos blockPos, int amount) booleanbooleanlightOnInSection(SectionPos sectionPos) voidpropagateLightSources(ChunkPos chunkPos) voidqueueSectionData(LightLayer lightLayer, SectionPos sectionPos, DataLayer dataLayer) voidretainData(ChunkPos pos, boolean retain) intvoidsetLightEnabled(ChunkPos chunkPos, boolean lightEnabled) voidupdateSectionStatus(SectionPos pos, boolean isEmpty) 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:
-
levelHeightAccessor
-
blockEngine
-
skyEngine
-
-
Constructor Details
-
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 lightLayer, SectionPos sectionPos) -
queueSectionData
public void queueSectionData(LightLayer lightLayer, SectionPos sectionPos, @Nullable DataLayer dataLayer) -
retainData
-
getRawBrightness
-
lightOnInSection
-
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-