Class ChunkPos

java.lang.Object
net.minecraft.world.level.ChunkPos

public class ChunkPos extends Object
  • Field Details

  • Constructor Details

    • ChunkPos

      public ChunkPos(int p_45582_, int p_45583_)
    • ChunkPos

      public ChunkPos(BlockPos p_45587_)
    • ChunkPos

      public ChunkPos(long p_45585_)
  • Method Details

    • minFromRegion

      public static ChunkPos minFromRegion(int p_220338_, int p_220339_)
    • maxFromRegion

      public static ChunkPos maxFromRegion(int p_220341_, int p_220342_)
    • toLong

      public long toLong()
    • asLong

      public static long asLong(int p_45590_, int p_45591_)
    • asLong

      public static long asLong(BlockPos p_151389_)
    • getX

      public static int getX(long p_45593_)
    • getZ

      public static int getZ(long p_45603_)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • hash

      public static int hash(int p_220344_, int p_220345_)
    • equals

      public boolean equals(Object p_45607_)
      Overrides:
      equals in class Object
    • getMiddleBlockX

      public int getMiddleBlockX()
    • getMiddleBlockZ

      public int getMiddleBlockZ()
    • 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()
    • getBlockAt

      public BlockPos getBlockAt(int p_151385_, int p_151386_, int p_151387_)
    • getBlockX

      public int getBlockX(int p_151383_)
    • getBlockZ

      public int getBlockZ(int p_151392_)
    • getMiddleBlockPosition

      public BlockPos getMiddleBlockPosition(int p_151395_)
    • toString

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

      public BlockPos getWorldPosition()
    • getChessboardDistance

      public int getChessboardDistance(ChunkPos p_45595_)
    • distanceSquared

      public int distanceSquared(ChunkPos p_297557_)
    • distanceSquared

      public int distanceSquared(long p_300589_)
    • distanceSquared

      private int distanceSquared(int p_300851_, int p_301322_)
    • rangeClosed

      public static Stream<ChunkPos> rangeClosed(ChunkPos p_45597_, int p_45598_)
    • rangeClosed

      public static Stream<ChunkPos> rangeClosed(ChunkPos p_45600_, ChunkPos p_45601_)