Class LevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
- All Implemented Interfaces:
LightEventListener
- Direct Known Subclasses:
ThreadedLevelLightEngine
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LightEngine
<?, ?> protected final LevelHeightAccessor
static final int
private final LightEngine
<?, ?> -
Constructor Summary
ConstructorDescriptionLevelLightEngine
(LightChunkGetter p_75805_, boolean p_75806_, boolean p_75807_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkBlock
(BlockPos p_75823_) getDebugData
(LightLayer p_75817_, SectionPos p_75818_) getDebugSectionType
(LightLayer p_285008_, SectionPos p_285336_) getLayerListener
(LightLayer p_75815_) int
int
int
int
getRawBrightness
(BlockPos p_75832_, int p_75833_) boolean
boolean
lightOnInSection
(SectionPos p_285319_) void
propagateLightSources
(ChunkPos p_284998_) void
queueSectionData
(LightLayer p_285328_, SectionPos p_284962_, DataLayer p_285035_) void
retainData
(ChunkPos p_75829_, boolean p_75830_) int
void
setLightEnabled
(ChunkPos p_285439_, boolean p_285012_) void
updateSectionStatus
(SectionPos p_75827_, boolean p_75828_) 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 p_285008_, SectionPos p_285336_) -
queueSectionData
public void queueSectionData(LightLayer p_285328_, SectionPos p_284962_, @Nullable DataLayer p_285035_) -
retainData
-
getRawBrightness
-
lightOnInSection
-
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-