Class CoordConversion

java.lang.Object
net.minestom.server.coordinate.CoordConversion

public final class CoordConversion extends Object
  • 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

      public static long chunkIndex(@NotNull @NotNull Point point)
    • 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

      @NotNull public static @NotNull Point chunkBlockIndexGetGlobal(int index, int chunkX, int chunkZ)