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 p_75805_, boolean p_75806_, boolean p_75807_)  - 
Method Summary
Modifier and TypeMethodDescriptionvoidcheckBlock(BlockPos p_75823_) getDebugData(LightLayer p_75817_, SectionPos p_75818_) getDebugSectionType(LightLayer p_285008_, SectionPos p_285336_) getLayerListener(LightLayer p_75815_) intintintintgetRawBrightness(BlockPos p_75832_, int p_75833_) booleanbooleanlightOnInSection(SectionPos p_285319_) voidpropagateLightSources(ChunkPos p_284998_) voidqueueSectionData(LightLayer p_285328_, SectionPos p_284962_, DataLayer p_285035_) voidretainData(ChunkPos p_75829_, boolean p_75830_) intvoidsetLightEnabled(ChunkPos p_285439_, boolean p_285012_) voidupdateSectionStatus(SectionPos p_75827_, boolean p_75828_) 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 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() 
 -