Package net.minecraft.util.math
Class ChunkPos
- java.lang.Object
-
- net.minecraft.util.math.ChunkPos
-
public class ChunkPos extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static long
INVALID_CHUNK_POS
int
x
int
z
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
asLong(int p_77272_0_, int p_77272_1_)
boolean
equals(java.lang.Object p_equals_1_)
int
getChessboardDistance(ChunkPos p_226661_1_)
int
getMaxBlockX()
int
getMaxBlockZ()
int
getMinBlockX()
int
getMinBlockZ()
int
getRegionLocalX()
int
getRegionLocalZ()
int
getRegionX()
int
getRegionZ()
BlockPos
getWorldPosition()
static int
getX(long p_212578_0_)
static int
getZ(long p_212579_0_)
int
hashCode()
static java.util.stream.Stream<ChunkPos>
rangeClosed(ChunkPos p_222243_0_, int p_222243_1_)
static java.util.stream.Stream<ChunkPos>
rangeClosed(ChunkPos p_222239_0_, ChunkPos p_222239_1_)
long
toLong()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.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 classjava.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_)
-
-