Class Heightmap


  • public class Heightmap
    extends java.lang.Object
    • Field Detail

      • NOT_AIR

        private static final java.util.function.Predicate<BlockState> NOT_AIR
      • MATERIAL_MOTION_BLOCKING

        private static final java.util.function.Predicate<BlockState> MATERIAL_MOTION_BLOCKING
      • isOpaque

        private final java.util.function.Predicate<BlockState> isOpaque
      • chunk

        private final IChunk chunk
    • Method Detail

      • primeHeightmaps

        public static void primeHeightmaps​(IChunk p_222690_0_,
                                           java.util.Set<Heightmap.Type> p_222690_1_)
      • update

        public boolean update​(int p_202270_1_,
                              int p_202270_2_,
                              int p_202270_3_,
                              BlockState p_202270_4_)
      • getFirstAvailable

        public int getFirstAvailable​(int p_202273_1_,
                                     int p_202273_2_)
      • getFirstAvailable

        private int getFirstAvailable​(int p_202274_1_)
      • setHeight

        private void setHeight​(int p_202272_1_,
                               int p_202272_2_,
                               int p_202272_3_)
      • setRawData

        public void setRawData​(long[] p_202268_1_)
      • getRawData

        public long[] getRawData()
      • getIndex

        private static int getIndex​(int p_202267_0_,
                                    int p_202267_1_)