public class ChunkPos
extends java.lang.Object
Constructor and Description |
---|
ChunkPos(BlockPos pos) |
ChunkPos(int x,
int z) |
Modifier and Type | Method and Description |
---|---|
static long |
chunkXZ2Int(int x,
int z) |
boolean |
equals(java.lang.Object p_equals_1_) |
BlockPos |
getBlock(int x,
int y,
int z) |
BlockPos |
getCenterBlock(int y) |
int |
getCenterXPos() |
int |
getCenterZPosition() |
double |
getDistanceSq(Entity p_185327_1_) |
int |
getXEnd() |
int |
getXStart() |
int |
getZEnd() |
int |
getZStart() |
int |
hashCode() |
java.lang.String |
toString() |
public ChunkPos(int x, int z)
public ChunkPos(BlockPos pos)
public static long chunkXZ2Int(int x, int z)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public double getDistanceSq(Entity p_185327_1_)
public int getCenterXPos()
public int getCenterZPosition()
public int getXStart()
public int getZStart()
public int getXEnd()
public int getZEnd()
public BlockPos getBlock(int x, int y, int z)
public BlockPos getCenterBlock(int y)
public java.lang.String toString()
toString
in class java.lang.Object