Package net.minecraft.util.math
Class ChunkPos
java.lang.Object
net.minecraft.util.math.ChunkPos
public class ChunkPos extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method 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 center, int radius)
static Stream<ChunkPos>
stream(ChunkPos pos1, ChunkPos pos2)
long
toLong()
static long
toLong(int chunkX, int chunkZ)
String
toString()
-
Field Details
-
MARKER
public static final long MARKER -
x
public final int x -
z
public final int z
-
-
Constructor Details
-
ChunkPos
public ChunkPos(int x, int z) -
ChunkPos
-
ChunkPos
public ChunkPos(long pos)
-
-
Method Details
-
toLong
public long toLong() -
toLong
public static long toLong(int chunkX, int chunkZ) -
getPackedX
public static int getPackedX(long pos) -
getPackedZ
public static int getPackedZ(long pos) -
hashCode
public int hashCode() -
equals
-
getStartX
public int getStartX() -
getStartZ
public int getStartZ() -
getEndX
public int getEndX() -
getEndZ
public int getEndZ() -
getRegionX
public int getRegionX() -
getRegionZ
public int getRegionZ() -
getRegionRelativeX
public int getRegionRelativeX() -
getRegionRelativeZ
public int getRegionRelativeZ() -
toString
-
getStartPos
-
method_24022
-
stream
-
stream
-