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 LevelHeightAccessor
static final int
private final LightEngine
<?, ?> -
Constructor Summary
ConstructorsConstructorDescriptionLevelLightEngine
(LightChunkGetter pLightChunkGetter, boolean pBlockLight, boolean pSkyLight) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkBlock
(BlockPos pPos) getDebugData
(LightLayer pLightLayer, SectionPos pSectionPos) getDebugSectionType
(LightLayer pLightLayer, SectionPos pSectionPos) getLayerListener
(LightLayer pType) int
int
int
int
getRawBrightness
(BlockPos pBlockPos, int pAmount) boolean
boolean
lightOnInSection
(SectionPos pSectionPos) void
propagateLightSources
(ChunkPos pChunkPos) void
queueSectionData
(LightLayer pLightLayer, SectionPos pSectionPos, DataLayer pDataLayer) void
retainData
(ChunkPos pPos, boolean pRetain) int
void
setLightEnabled
(ChunkPos pChunkPos, boolean pLightEnabled) void
updateSectionStatus
(SectionPos pPos, boolean pIsEmpty) 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.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:
checkBlock
in interfaceLightEventListener
-
hasLightWork
public boolean hasLightWork()- Specified by:
hasLightWork
in interfaceLightEventListener
-
runLightUpdates
public int runLightUpdates()- Specified by:
runLightUpdates
in interfaceLightEventListener
-
updateSectionStatus
- Specified by:
updateSectionStatus
in interfaceLightEventListener
-
setLightEnabled
- Specified by:
setLightEnabled
in interfaceLightEventListener
-
propagateLightSources
- Specified by:
propagateLightSources
in 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
-
lightOnInSection
-
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-