Package net.minecraft.world.lighting
Class WorldLightManager
- java.lang.Object
-
- net.minecraft.world.lighting.WorldLightManager
-
- All Implemented Interfaces:
ILightListener
- Direct Known Subclasses:
ServerWorldLightManager
public class WorldLightManager extends java.lang.Object implements ILightListener
-
-
Field Summary
Fields Modifier and Type Field Description private LightEngine<?,?>
blockEngine
private LightEngine<?,?>
skyEngine
-
Constructor Summary
Constructors Constructor Description WorldLightManager(IChunkLightProvider p_i51290_1_, boolean p_i51290_2_, boolean p_i51290_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkBlock(BlockPos p_215568_1_)
void
enableLightSources(ChunkPos p_215571_1_, boolean p_215571_2_)
java.lang.String
getDebugData(LightType p_215572_1_, SectionPos p_215572_2_)
IWorldLightListener
getLayerListener(LightType p_215569_1_)
int
getRawBrightness(BlockPos p_227470_1_, int p_227470_2_)
boolean
hasLightWork()
void
onBlockEmissionIncrease(BlockPos p_215573_1_, int p_215573_2_)
void
queueSectionData(LightType p_215574_1_, SectionPos p_215574_2_, NibbleArray p_215574_3_, boolean p_215574_4_)
void
retainData(ChunkPos p_223115_1_, boolean p_223115_2_)
int
runUpdates(int p_215575_1_, boolean p_215575_2_, boolean p_215575_3_)
void
updateSectionStatus(SectionPos p_215566_1_, boolean p_215566_2_)
-
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.lighting.ILightListener
updateSectionStatus
-
-
-
-
Field Detail
-
blockEngine
@Nullable private final LightEngine<?,?> blockEngine
-
skyEngine
@Nullable private final LightEngine<?,?> skyEngine
-
-
Constructor Detail
-
WorldLightManager
public WorldLightManager(IChunkLightProvider p_i51290_1_, boolean p_i51290_2_, boolean p_i51290_3_)
-
-
Method Detail
-
checkBlock
public void checkBlock(BlockPos p_215568_1_)
-
onBlockEmissionIncrease
public void onBlockEmissionIncrease(BlockPos p_215573_1_, int p_215573_2_)
-
hasLightWork
public boolean hasLightWork()
-
runUpdates
public int runUpdates(int p_215575_1_, boolean p_215575_2_, boolean p_215575_3_)
-
updateSectionStatus
public void updateSectionStatus(SectionPos p_215566_1_, boolean p_215566_2_)
- Specified by:
updateSectionStatus
in interfaceILightListener
-
enableLightSources
public void enableLightSources(ChunkPos p_215571_1_, boolean p_215571_2_)
-
getLayerListener
public IWorldLightListener getLayerListener(LightType p_215569_1_)
-
getDebugData
public java.lang.String getDebugData(LightType p_215572_1_, SectionPos p_215572_2_)
-
queueSectionData
public void queueSectionData(LightType p_215574_1_, SectionPos p_215574_2_, @Nullable NibbleArray p_215574_3_, boolean p_215574_4_)
-
retainData
public void retainData(ChunkPos p_223115_1_, boolean p_223115_2_)
-
getRawBrightness
public int getRawBrightness(BlockPos p_227470_1_, int p_227470_2_)
-
-