Class ChunkPos


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

      • INVALID_CHUNK_POS

        public static final long INVALID_CHUNK_POS
      • x

        public final int x
      • z

        public final int z
    • Constructor Detail

      • ChunkPos

        public ChunkPos​(int p_i1947_1_,
                        int p_i1947_2_)
      • ChunkPos

        public ChunkPos​(BlockPos p_i46717_1_)
      • ChunkPos

        public ChunkPos​(long p_i48713_1_)
    • Method Detail

      • toLong

        public long toLong()
      • asLong

        public static long asLong​(int p_77272_0_,
                                  int p_77272_1_)
      • getX

        public static int getX​(long p_212578_0_)
      • getZ

        public static int getZ​(long p_212579_0_)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object p_equals_1_)
        Overrides:
        equals in class java.lang.Object
      • getMinBlockX

        public int getMinBlockX()
      • getMinBlockZ

        public int getMinBlockZ()
      • getMaxBlockX

        public int getMaxBlockX()
      • getMaxBlockZ

        public int getMaxBlockZ()
      • getRegionX

        public int getRegionX()
      • getRegionZ

        public int getRegionZ()
      • getRegionLocalX

        public int getRegionLocalX()
      • getRegionLocalZ

        public int getRegionLocalZ()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getWorldPosition

        public BlockPos getWorldPosition()
      • getChessboardDistance

        public int getChessboardDistance​(ChunkPos p_226661_1_)
      • rangeClosed

        public static java.util.stream.Stream<ChunkPos> rangeClosed​(ChunkPos p_222243_0_,
                                                                    int p_222243_1_)
      • rangeClosed

        public static java.util.stream.Stream<ChunkPos> rangeClosed​(ChunkPos p_222239_0_,
                                                                    ChunkPos p_222239_1_)