Class LightingProvider

java.lang.Object
net.minecraft.world.chunk.light.LightingProvider
All Implemented Interfaces:
LightingView
Direct Known Subclasses:
ServerLightingProvider

public class LightingProvider
extends Object
implements LightingView
  • Field Details

  • Constructor Details

    • LightingProvider

      public LightingProvider​(ChunkProvider chunkProvider, boolean hasBlockLight, boolean hasSkyLight)
  • Method Details

    • checkBlock

      public void checkBlock​(BlockPos pos)
    • addLightSource

      public void addLightSource​(BlockPos pos, int level)
    • hasUpdates

      public boolean hasUpdates()
    • doLightUpdates

      public int doLightUpdates​(int maxUpdateCount, boolean doSkylight, boolean skipEdgeLightPropagation)
    • setSectionStatus

      public void setSectionStatus​(ChunkSectionPos pos, boolean notReady)
      Specified by:
      setSectionStatus in interface LightingView
    • setColumnEnabled

      public void setColumnEnabled​(ChunkPos pos, boolean lightEnabled)
    • get

      public ChunkLightingView get​(LightType lightType)
    • displaySectionLevel

      @Environment(CLIENT) public String displaySectionLevel​(LightType lightType, ChunkSectionPos chunkSectionPos)
    • enqueueSectionData

      public void enqueueSectionData​(LightType lightType, ChunkSectionPos pos, @Nullable ChunkNibbleArray nibbles, boolean bool)
    • setRetainData

      public void setRetainData​(ChunkPos pos, boolean retainData)
    • getLight

      public int getLight​(BlockPos pos, int ambientDarkness)