public class ChunkPos extends Object
Constructor and Description |
---|
ChunkPos(BlockPos pos) |
ChunkPos(int x,
int z) |
ChunkPos(long pos) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getEndX() |
int |
getEndZ() |
static int |
getPackedX(long pos) |
static int |
getPackedZ(long pos) |
int |
getRegionRelativeX() |
int |
getRegionRelativeZ() |
int |
getRegionX() |
int |
getRegionZ() |
BlockPos |
getStartPos() |
int |
getStartX() |
int |
getStartZ() |
int |
hashCode() |
int |
method_24022(ChunkPos chunkPos) |
static Stream<ChunkPos> |
stream(ChunkPos pos1,
ChunkPos pos2) |
static Stream<ChunkPos> |
stream(ChunkPos center,
int radius) |
long |
toLong() |
static long |
toLong(int chunkX,
int chunkZ) |
String |
toString() |
public ChunkPos(int x, int z)
public ChunkPos(BlockPos pos)
public ChunkPos(long pos)
public long toLong()
public static long toLong(int chunkX, int chunkZ)
public static int getPackedX(long pos)
public static int getPackedZ(long pos)
public int getStartX()
public int getStartZ()
public int getEndX()
public int getEndZ()
public int getRegionX()
public int getRegionZ()
public int getRegionRelativeX()
public int getRegionRelativeZ()
public BlockPos getStartPos()
public int method_24022(ChunkPos chunkPos)