Class RexlCloudHelper
java.lang.Object
de.rexlcloud.bridge.helper.RexlCloudHelper
Converts between Minestom positions and the cloud's
ServerLocation. The location's world name is the UUID of
the instance.-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerLocationposToServerLocation(net.minestom.server.coordinate.Pos pos) static ServerLocationposToServerLocation(net.minestom.server.coordinate.Pos pos, boolean withRotation) static ServerLocationposToServerLocation(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos) static ServerLocationposToServerLocation(net.minestom.server.instance.Instance instance, net.minestom.server.coordinate.Pos pos, boolean withRotation) static net.minestom.server.coordinate.PosserverLocationToPos(ServerLocation serverLocation) static voidteleport(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.
-
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
-
posToServerLocation
public static ServerLocation posToServerLocation(net.minestom.server.coordinate.Pos pos, boolean withRotation) -
serverLocationToPos
-
teleport
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.
-