Package net.minecraft.world.level
Class ChunkPos
java.lang.Object
net.minecraft.world.level.ChunkPos
-
Field Summary
Modifier and TypeFieldDescriptionprivate static long
private static long
private static int
private static int
private static int
static long
private static int
private static int
int
int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
asLong(int p_45590_, int p_45591_)
static long
boolean
getBlockAt(int p_151385_, int p_151386_, int p_151387_)
int
getBlockX(int p_151383_)
int
getBlockZ(int p_151392_)
int
getChessboardDistance(ChunkPos p_45595_)
int
int
getMiddleBlockPosition(int p_151395_)
int
int
int
int
int
int
int
int
static int
getX(long p_45593_)
static int
getZ(long p_45603_)
int
hashCode()
rangeClosed(ChunkPos p_45597_, int p_45598_)
rangeClosed(ChunkPos p_45600_, ChunkPos p_45601_)
long
toLong()
toString()
-
Field Details
-
INVALID_CHUNK_POS
public static final long INVALID_CHUNK_POS -
COORD_BITS
private static final long COORD_BITS- See Also:
- Constant Field Values
-
COORD_MASK
private static final long COORD_MASK- See Also:
- Constant Field Values
-
REGION_BITS
private static final int REGION_BITS- See Also:
- Constant Field Values
-
REGION_MASK
private static final int REGION_MASK- See Also:
- Constant Field Values
-
x
public final int x -
z
public final int z -
HASH_A
private static final int HASH_A- See Also:
- Constant Field Values
-
HASH_C
private static final int HASH_C- See Also:
- Constant Field Values
-
HASH_Z_XOR
private static final int HASH_Z_XOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChunkPos
public ChunkPos(int p_45582_, int p_45583_) -
ChunkPos
-
ChunkPos
public ChunkPos(long p_45585_)
-
-
Method Details
-
toLong
public long toLong() -
asLong
public static long asLong(int p_45590_, int p_45591_) -
asLong
-
getX
public static int getX(long p_45593_) -
getZ
public static int getZ(long p_45603_) -
hashCode
public int hashCode() -
equals
-
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
-
getBlockX
public int getBlockX(int p_151383_) -
getBlockZ
public int getBlockZ(int p_151392_) -
getMiddleBlockPosition
-
toString
-
getWorldPosition
-
getChessboardDistance
-
rangeClosed
-
rangeClosed
-