Class LevelLightEngine
java.lang.Object
net.minecraft.world.level.lighting.LevelLightEngine
- All Implemented Interfaces:
- LightEventListener
- Direct Known Subclasses:
- ThreadedLevelLightEngine
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LightEngine<?,?> protected final LevelHeightAccessorstatic final intprivate final LightEngine<?,?> 
- 
Constructor SummaryConstructorsConstructorDescriptionLevelLightEngine(LightChunkGetter p_75805_, boolean p_75806_, boolean p_75807_) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.world.level.lighting.LightEventListenerupdateSectionStatus
- 
Field Details- 
LIGHT_SECTION_PADDINGpublic static final int LIGHT_SECTION_PADDING- See Also:
 
- 
levelHeightAccessor
- 
blockEngine
- 
skyEngine
 
- 
- 
Constructor Details- 
LevelLightEngine
 
- 
- 
Method Details- 
checkBlock- Specified by:
- checkBlockin interface- LightEventListener
 
- 
hasLightWorkpublic boolean hasLightWork()- Specified by:
- hasLightWorkin interface- LightEventListener
 
- 
runLightUpdatespublic int runLightUpdates()- Specified by:
- runLightUpdatesin interface- LightEventListener
 
- 
updateSectionStatus- Specified by:
- updateSectionStatusin interface- LightEventListener
 
- 
setLightEnabled- Specified by:
- setLightEnabledin interface- LightEventListener
 
- 
propagateLightSources- Specified by:
- propagateLightSourcesin interface- LightEventListener
 
- 
getLayerListener
- 
getDebugData
- 
getDebugSectionTypepublic LayerLightSectionStorage.SectionType getDebugSectionType(LightLayer p_285008_, SectionPos p_285336_) 
- 
queueSectionDatapublic void queueSectionData(LightLayer p_285328_, SectionPos p_284962_, @Nullable DataLayer p_285035_) 
- 
retainData
- 
getRawBrightness
- 
lightOnInSection
- 
getLightSectionCountpublic int getLightSectionCount()
- 
getMinLightSectionpublic int getMinLightSection()
- 
getMaxLightSectionpublic int getMaxLightSection()
 
-