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 booleanequals(Object o)intgetEndX()intgetEndZ()static intgetPackedX(long pos)static intgetPackedZ(long pos)intgetRegionRelativeX()intgetRegionRelativeZ()intgetRegionX()intgetRegionZ()BlockPosgetStartPos()intgetStartX()intgetStartZ()inthashCode()intmethod_24022(ChunkPos chunkPos)static Stream<ChunkPos>stream(ChunkPos center, int radius)static Stream<ChunkPos>stream(ChunkPos pos1, ChunkPos pos2)longtoLong()static longtoLong(int chunkX, int chunkZ)StringtoString()
-
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
-