Class LevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
- All Implemented Interfaces:
LightEventListener
- Direct Known Subclasses:
ThreadedLevelLightEngine
-
Field Summary
Modifier and TypeFieldDescriptionprivate LayerLightEngine<?,?>
protected LevelHeightAccessor
static int
static int
private LayerLightEngine<?,?>
-
Constructor Summary
ConstructorDescriptionLevelLightEngine(LightChunkGetter p_75805_, boolean p_75806_, boolean p_75807_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkBlock(BlockPos p_75823_)
void
enableLightSources(ChunkPos p_75812_, boolean p_75813_)
getDebugData(LightLayer p_75817_, SectionPos p_75818_)
getLayerListener(LightLayer p_75815_)
int
int
int
int
getRawBrightness(BlockPos p_75832_, int p_75833_)
boolean
void
onBlockEmissionIncrease(BlockPos p_75824_, int p_75825_)
void
queueSectionData(LightLayer p_75819_, SectionPos p_75820_, DataLayer p_75821_, boolean p_75822_)
void
retainData(ChunkPos p_75829_, boolean p_75830_)
int
runUpdates(int p_75809_, boolean p_75810_, boolean p_75811_)
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
-
MAX_SOURCE_LEVEL
public static final int MAX_SOURCE_LEVEL- See Also:
- Constant Field Values
-
LIGHT_SECTION_PADDING
public static final int LIGHT_SECTION_PADDING- See Also:
- Constant Field Values
-
levelHeightAccessor
-
blockEngine
-
skyEngine
-
-
Constructor Details
-
LevelLightEngine
-
-
Method Details
-
checkBlock
- Specified by:
checkBlock
in interfaceLightEventListener
-
onBlockEmissionIncrease
- Specified by:
onBlockEmissionIncrease
in interfaceLightEventListener
-
hasLightWork
public boolean hasLightWork()- Specified by:
hasLightWork
in interfaceLightEventListener
-
runUpdates
public int runUpdates(int p_75809_, boolean p_75810_, boolean p_75811_)- Specified by:
runUpdates
in interfaceLightEventListener
-
updateSectionStatus
- Specified by:
updateSectionStatus
in interfaceLightEventListener
-
enableLightSources
- Specified by:
enableLightSources
in interfaceLightEventListener
-
getLayerListener
-
getDebugData
-
queueSectionData
public void queueSectionData(LightLayer p_75819_, SectionPos p_75820_, @Nullable DataLayer p_75821_, boolean p_75822_) -
retainData
-
getRawBrightness
-
getLightSectionCount
public int getLightSectionCount() -
getMinLightSection
public int getMinLightSection() -
getMaxLightSection
public int getMaxLightSection()
-