Package net.minecraft.world.level
Class ChunkPos
java.lang.Object
net.minecraft.world.level.ChunkPos
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final long
private static final long
private static final int
private static final int
private static final int
static final long
private static final int
private static final int
static final int
static final int
private static final int
final int
final int
static final ChunkPos
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
asLong
(int p_45590_, int p_45591_) static long
private int
distanceSquared
(int p_300851_, int p_301322_) int
distanceSquared
(long p_300589_) int
distanceSquared
(ChunkPos p_297557_) 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_) static int
hash
(int p_220344_, int p_220345_) int
hashCode()
static ChunkPos
maxFromRegion
(int p_220341_, int p_220342_) static ChunkPos
minFromRegion
(int p_220338_, int p_220339_) rangeClosed
(ChunkPos p_45597_, int p_45598_) rangeClosed
(ChunkPos p_45600_, ChunkPos p_45601_) long
toLong()
toString()
-
Field Details
-
SAFETY_MARGIN
private static final int SAFETY_MARGIN- See Also:
-
INVALID_CHUNK_POS
public static final long INVALID_CHUNK_POS -
ZERO
-
COORD_BITS
private static final long COORD_BITS- See Also:
-
COORD_MASK
private static final long COORD_MASK- See Also:
-
REGION_BITS
private static final int REGION_BITS- See Also:
-
REGION_SIZE
public static final int REGION_SIZE- See Also:
-
REGION_MASK
private static final int REGION_MASK- See Also:
-
REGION_MAX_INDEX
public static final int REGION_MAX_INDEX- See Also:
-
x
public final int x -
z
public final int z -
HASH_A
private static final int HASH_A- See Also:
-
HASH_C
private static final int HASH_C- See Also:
-
HASH_Z_XOR
private static final int HASH_Z_XOR- See Also:
-
-
Constructor Details
-
ChunkPos
public ChunkPos(int p_45582_, int p_45583_) -
ChunkPos
-
ChunkPos
public ChunkPos(long p_45585_)
-
-
Method Details
-
minFromRegion
-
maxFromRegion
-
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() -
hash
public static int hash(int p_220344_, int p_220345_) -
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
-
distanceSquared
-
distanceSquared
public int distanceSquared(long p_300589_) -
distanceSquared
private int distanceSquared(int p_300851_, int p_301322_) -
rangeClosed
-
rangeClosed
-