Class WorldLightManager

java.lang.Object
net.minecraft.world.lighting.WorldLightManager
All Implemented Interfaces:
ILightListener
Direct Known Subclasses:
ServerWorldLightManager

public class WorldLightManager extends Object implements ILightListener
  • Field Details

    • blockEngine

      @Nullable private final LightEngine<?,?> blockEngine
    • skyEngine

      @Nullable private final LightEngine<?,?> skyEngine
  • Constructor Details

    • WorldLightManager

      public WorldLightManager(IChunkLightProvider p_i51290_1_, boolean p_i51290_2_, boolean p_i51290_3_)
  • Method Details

    • 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 interface ILightListener
    • enableLightSources

      public void enableLightSources(ChunkPos p_215571_1_, boolean p_215571_2_)
    • getLayerListener

      public IWorldLightListener getLayerListener(LightType p_215569_1_)
    • getDebugData

      public 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_)