Class ChunkSkyLightSources

java.lang.Object
net.minecraft.world.level.lighting.ChunkSkyLightSources

public class ChunkSkyLightSources extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • fillFrom

      public void fillFrom(ChunkAccess chunk)
    • findLowestSourceY

      private int findLowestSourceY(ChunkAccess chunk, int topSectionIndex, int x, int z)
    • update

      public boolean update(BlockGetter level, int x, int y, int z)
    • updateEdge

      private boolean updateEdge(BlockGetter level, int index, int oldTopEdgeY, BlockPos topPos, BlockState topState, BlockPos bottomPos, BlockState bottomState)
    • findLowestSourceBelow

      private int findLowestSourceBelow(BlockGetter level, BlockPos startPos, BlockState startState)
    • isEdgeOccluded

      private static boolean isEdgeOccluded(BlockState topState, BlockState bottomState)
    • getLowestSourceY

      public int getLowestSourceY(int x, int z)
    • getHighestLowestSourceY

      public int getHighestLowestSourceY()
    • fill

      private void fill(int lowestSourceY)
    • set

      private void set(int index, int value)
    • get

      private int get(int index)
    • extendSourcesBelowWorld

      private int extendSourcesBelowWorld(int value)
    • index

      private static int index(int x, int z)