Class ChunkPos

java.lang.Object
net.minecraft.util.math.ChunkPos

public class ChunkPos extends Object
  • Field Details

    • INVALID_CHUNK_POS

      public static final long INVALID_CHUNK_POS
    • x

      public final int x
    • z

      public final int z
  • Constructor Details

    • 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 Details

    • 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 Object
    • equals

      public boolean equals(Object p_equals_1_)
      Overrides:
      equals in class 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 String toString()
      Overrides:
      toString in class Object
    • getWorldPosition

      public BlockPos getWorldPosition()
    • getChessboardDistance

      public int getChessboardDistance(ChunkPos p_226661_1_)
    • rangeClosed

      public static Stream<ChunkPos> rangeClosed(ChunkPos p_222243_0_, int p_222243_1_)
    • rangeClosed

      public static Stream<ChunkPos> rangeClosed(ChunkPos p_222239_0_, ChunkPos p_222239_1_)