public class ChunkPos
extends java.lang.Object
修飾子とタイプ | フィールドと説明 |
---|---|
static long |
SENTINEL
Value representing an absent or invalid chunkpos
|
int |
x |
int |
z |
修飾子とタイプ | メソッドと説明 |
---|---|
BlockPos |
asBlockPos() |
long |
asLong() |
static long |
asLong(int x,
int z)
Converts the chunk coordinate pair to a long
|
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)
Get the World coordinates of the Block with the given Chunk coordinates relative to this chunk
|
int |
getChessboardDistance(ChunkPos chunkPosIn) |
int |
getRegionCoordX()
Gets the x-coordinate of the region file containing this chunk.
|
int |
getRegionCoordZ()
Gets the z-coordinate of the region file containing this chunk.
|
int |
getRegionPositionX()
Gets the x-coordinate of this chunk within the region file that contains it.
|
int |
getRegionPositionZ()
Gets the z-coordinate of this chunk within the region file that contains it.
|
static int |
getX(long chunkAsLong) |
int |
getXEnd()
Get the last world X coordinate that belongs to this Chunk
|
int |
getXStart()
Get the first world X coordinate that belongs to this Chunk
|
static int |
getZ(long chunkAsLong) |
int |
getZEnd()
Get the last world Z coordinate that belongs to this Chunk
|
int |
getZStart()
Get the first world Z coordinate that belongs to this Chunk
|
int |
hashCode() |
java.lang.String |
toString() |
public static final long SENTINEL
public final int x
public final int z
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
クラス内 java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 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
クラス内 java.lang.Object
public BlockPos asBlockPos()
public int getChessboardDistance(ChunkPos chunkPosIn)
public static java.util.stream.Stream<ChunkPos> getAllInBox(ChunkPos center, int radius)