Record Class TrackedWaypoint
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.level.waypoint.TrackedWaypoint
public record TrackedWaypoint(@Nullable UUID uuid, @Nullable String id, TrackedWaypoint.Icon icon, TrackedWaypoint.Type type, @Nullable WaypointData data)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionTrackedWaypoint(@Nullable UUID uuid, @Nullable String id, TrackedWaypoint.Icon icon, TrackedWaypoint.Type type, @Nullable WaypointData data) Creates an instance of aTrackedWaypointrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable WaypointDatadata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.@Nullable Stringid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.@Nullable UUIDuuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
TrackedWaypoint
public TrackedWaypoint(@Nullable @Nullable UUID uuid, @Nullable @Nullable String id, TrackedWaypoint.Icon icon, TrackedWaypoint.Type type, @Nullable @Nullable WaypointData data) Creates an instance of aTrackedWaypointrecord class.- Parameters:
uuid- the value for theuuidrecord componentid- the value for theidrecord componenticon- the value for theiconrecord componenttype- the value for thetyperecord componentdata- the value for thedatarecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-