Record Class PendingTeleport
java.lang.Object
java.lang.Record
com.cotani.teleport.pending.PendingTeleport
@InternalApi
public record PendingTeleport(UUID id, UUID playerId, org.bukkit.Location target, Duration delay, TeleportOptions options, TeleportCause cause, String source)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPendingTeleport(UUID id, UUID playerId, org.bukkit.Location target, Duration delay, TeleportOptions options, TeleportCause cause, String source) Creates an instance of aPendingTeleportrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.static PendingTeleportcreate(UUID playerId, org.bukkit.Location target, Duration delay, TeleportOptions options, TeleportCause cause, String source) delay()Returns the value of thedelayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.options()Returns the value of theoptionsrecord component.playerId()Returns the value of theplayerIdrecord component.source()Returns the value of thesourcerecord component.org.bukkit.Locationtarget()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PendingTeleport
public PendingTeleport(UUID id, UUID playerId, org.bukkit.Location target, Duration delay, TeleportOptions options, TeleportCause cause, String source) Creates an instance of aPendingTeleportrecord class.- Parameters:
id- the value for theidrecord componentplayerId- the value for theplayerIdrecord componenttarget- the value for thetargetrecord componentdelay- the value for thedelayrecord componentoptions- the value for theoptionsrecord componentcause- the value for thecauserecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
create
public static PendingTeleport create(UUID playerId, org.bukkit.Location target, Duration delay, TeleportOptions options, TeleportCause cause, String source) -
target
public org.bukkit.Location target()Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
playerId
Returns the value of theplayerIdrecord component.- Returns:
- the value of the
playerIdrecord component
-
delay
Returns the value of thedelayrecord component.- Returns:
- the value of the
delayrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-