Record Class MarkerManager.Marker
java.lang.Object
java.lang.Record
fr.ghostrider584.axiom.marker.MarkerManager.Marker
- Enclosing class:
MarkerManager
public static record MarkerManager.Marker(UUID uuid, net.minestom.server.coordinate.Vec position, @Nullable String name, @Nullable MarkerManager.Marker.Region region)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMarker(UUID uuid, net.minestom.server.coordinate.Vec position, @Nullable String name, @Nullable MarkerManager.Marker.Region region) Creates an instance of aMarkerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static MarkerManager.MarkerfromEntity(net.minestom.server.entity.Entity entity) final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.net.minestom.server.coordinate.Vecposition()Returns the value of thepositionrecord component.@Nullable MarkerManager.Marker.Regionregion()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
Marker
public Marker(UUID uuid, net.minestom.server.coordinate.Vec position, @Nullable @Nullable String name, @Nullable @Nullable MarkerManager.Marker.Region region) Creates an instance of aMarkerrecord 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
-
fromEntity
-
toNetworkData
-
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). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
position
public net.minestom.server.coordinate.Vec 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
-