Package net.minecraft.util.math
Class ChunkPos
java.lang.Object
net.minecraft.util.math.ChunkPos
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
asLong
(int p_77272_0_, int p_77272_1_) boolean
int
getChessboardDistance
(ChunkPos p_226661_1_) int
int
int
int
int
int
int
int
static int
getX
(long p_212578_0_) static int
getZ
(long p_212579_0_) int
hashCode()
rangeClosed
(ChunkPos p_222243_0_, int p_222243_1_) rangeClosed
(ChunkPos p_222239_0_, ChunkPos p_222239_1_) long
toLong()
toString()
-
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
-
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() -
equals
-
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
-
getWorldPosition
-
getChessboardDistance
-
rangeClosed
-
rangeClosed
-