Class RexlCloudHelper

java.lang.Object
de.rexlcloud.bridge.helper.RexlCloudHelper

public final class RexlCloudHelper extends Object
Converts between Minestom positions and the cloud's ServerLocation. The location's world name is the UUID of the instance.
  • Method Details

    • posToServerLocation

      public static ServerLocation posToServerLocation(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos)
    • posToServerLocation

      public static ServerLocation posToServerLocation(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos, boolean withRotation)
    • posToServerLocation

      public static ServerLocation posToServerLocation(net.minestom.server.coordinate.Pos pos)
    • posToServerLocation

      public static ServerLocation posToServerLocation(net.minestom.server.coordinate.Pos pos, boolean withRotation)
    • serverLocationToPos

      public static net.minestom.server.coordinate.Pos serverLocationToPos(ServerLocation serverLocation)
    • teleport

      public static void teleport(net.minestom.server.entity.Player player, ServerLocation location)
      Moves the player to the location on the next tick: into the location's instance if it names one that exists, otherwise within the player's current instance.