public class ChunkPos
extends java.lang.Object
Constructor and Description |
---|
ChunkPos(BlockPos pos) |
ChunkPos(int x,
int z) |
ChunkPos(long longIn) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
asBlockPos() |
long |
asLong() |
static long |
asLong(int x,
int z) |
boolean |
equals(java.lang.Object p_equals_1_) |
static java.util.stream.Stream<ChunkPos> |
getAllInBox(ChunkPos start,
ChunkPos end) |
static java.util.stream.Stream<ChunkPos> |
getAllInBox(ChunkPos center,
int radius) |
BlockPos |
getBlock(int x,
int y,
int z) |
int |
getChessboardDistance(ChunkPos chunkPosIn) |
int |
getRegionCoordX() |
int |
getRegionCoordZ() |
int |
getRegionPositionX() |
int |
getRegionPositionZ() |
static int |
getX(long chunkAsLong) |
int |
getXEnd() |
int |
getXStart() |
static int |
getZ(long chunkAsLong) |
int |
getZEnd() |
int |
getZStart() |
int |
hashCode() |
java.lang.String |
toString() |
public ChunkPos(int x, int z)
public ChunkPos(BlockPos pos)
public ChunkPos(long longIn)
public long asLong()
public static long asLong(int x, int z)
public static int getX(long chunkAsLong)
public static int getZ(long chunkAsLong)
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 int getXStart()
public int getZStart()
public int getXEnd()
public int getZEnd()
public int getRegionCoordX()
public int getRegionCoordZ()
public int getRegionPositionX()
public int getRegionPositionZ()
public BlockPos getBlock(int x, int y, int z)
public java.lang.String toString()
toString
in class java.lang.Object
public BlockPos asBlockPos()
public int getChessboardDistance(ChunkPos chunkPosIn)
public static java.util.stream.Stream<ChunkPos> getAllInBox(ChunkPos center, int radius)