Record Class MarkerDataMessage.MarkerData
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.network.packet.server.MarkerDataMessage.MarkerData
- Enclosing class:
MarkerDataMessage
public static record MarkerDataMessage.MarkerData(UUID uuid, net.minestom.server.coordinate.Point position, @Nullable String name, @Nullable MarkerDataMessage.Region region)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minestom.server.network.NetworkBuffer.Type<MarkerDataMessage.MarkerData> -
Constructor Summary
ConstructorsConstructorDescriptionMarkerData(UUID uuid, net.minestom.server.coordinate.Point position, @Nullable String name, @Nullable MarkerDataMessage.Region region) Creates an instance of aMarkerDatarecord 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.@Nullable Stringname()Returns the value of thenamerecord component.net.minestom.server.coordinate.Pointposition()Returns the value of thepositionrecord component.@Nullable MarkerDataMessage.Regionregion()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Field Details
-
TYPE
public static final net.minestom.server.network.NetworkBuffer.Type<MarkerDataMessage.MarkerData> TYPE
-
-
Constructor Details
-
MarkerData
public MarkerData(UUID uuid, net.minestom.server.coordinate.Point position, @Nullable @Nullable String name, @Nullable @Nullable MarkerDataMessage.Region region) Creates an instance of aMarkerDatarecord class.- Parameters:
uuid- the value for theuuidrecord componentposition- the value for thepositionrecord componentname- the value for thenamerecord componentregion- the value for theregionrecord 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
-
position
public net.minestom.server.coordinate.Point position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-