Record Class TeleportDestination
java.lang.Object
java.lang.Record
dev.despical.mazeengine.api.model.TeleportDestination
- Record Components:
worldId- the target world UUIDx- the exact world X coordinatey- the exact world Y coordinate at the player's feetz- the exact world Z coordinateyaw- the horizontal facing angle in degreespitch- the vertical facing angle in degrees
public record TeleportDestination(UUID worldId, double x, double y, double z, float yaw, float pitch)
extends Record
Describes an exact arrival position and orientation in a world.
Unlike MazeLocation, this value retains fractional coordinates and
player-facing angles. Y is the position of the player's feet; yaw and pitch
use Bukkit's angle conventions in degrees.
No live Bukkit world is retained. Registry destination queries resolve a loaded world before returning this value, but a saved custom destination in a maze snapshot may refer to an unloaded world. Converting it to a Bukkit Location requires looking up its world UUID.
This value describes coordinates only. Constructing it does not validate terrain safety or teleport a player.
-
Constructor Summary
ConstructorsConstructorDescriptionTeleportDestination(UUID worldId, double x, double y, double z, float yaw, float pitch) Creates an instance of aTeleportDestinationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatpitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.worldId()Returns the value of theworldIdrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
TeleportDestination
Creates an instance of aTeleportDestinationrecord class.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
worldId
-
x
-
y
-
z
-
yaw
-
pitch
-