Package net.minestom.server.coordinate
Class CoordConversion
java.lang.Object
net.minestom.server.coordinate.CoordConversion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
ceilSection
(int coordinate) static int
chunkBlockIndex
(int x, int y, int z) static @NotNull Point
chunkBlockIndexGetGlobal
(int index, int chunkX, int chunkZ) static int
chunkBlockIndexGetX
(int index) static int
chunkBlockIndexGetY
(int index) static int
chunkBlockIndexGetZ
(int index) static long
chunkIndex
(int chunkX, int chunkZ) static long
chunkIndex
(@NotNull Point point) static int
chunkIndexGetX
(long index) static int
chunkIndexGetZ
(long index) static int
chunkToRegion
(int chunkCoordinate) static int
chunkToRegionLocal
(int chunkCoordinate) static int
floorSection
(int coordinate) static int
globalToBlock
(double xyz) static int
globalToChunk
(double xz) static int
globalToChunk
(int xz) static int
globalToSectionRelative
(int xyz)
-
Constructor Details
-
CoordConversion
public CoordConversion()
-
-
Method Details
-
globalToBlock
public static int globalToBlock(double xyz) -
globalToChunk
public static int globalToChunk(double xz) -
globalToChunk
public static int globalToChunk(int xz) -
globalToSectionRelative
public static int globalToSectionRelative(int xyz) -
chunkToRegion
public static int chunkToRegion(int chunkCoordinate) -
chunkToRegionLocal
public static int chunkToRegionLocal(int chunkCoordinate) -
floorSection
public static int floorSection(int coordinate) -
ceilSection
public static int ceilSection(int coordinate) -
chunkIndex
public static long chunkIndex(int chunkX, int chunkZ) -
chunkIndex
-
chunkIndexGetX
public static int chunkIndexGetX(long index) -
chunkIndexGetZ
public static int chunkIndexGetZ(long index) -
chunkBlockIndex
public static int chunkBlockIndex(int x, int y, int z) -
chunkBlockIndexGetX
public static int chunkBlockIndexGetX(int index) -
chunkBlockIndexGetY
public static int chunkBlockIndexGetY(int index) -
chunkBlockIndexGetZ
public static int chunkBlockIndexGetZ(int index) -
chunkBlockIndexGetGlobal
-