Record Class VanillaWaypoint
java.lang.Object
java.lang.Record
org.geysermc.geyser.session.cache.waypoint.VanillaWaypoint
- All Implemented Interfaces:
org.geysermc.geyser.api.waypoint.CustomWaypointStyle
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.geysermc.geyser.api.waypoint.CustomWaypointStyle
org.geysermc.geyser.api.waypoint.CustomWaypointStyle.VanillaBuilder -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.geysermc.geyser.api.waypoint.CustomWaypointStylestatic final org.geysermc.geyser.api.util.Identifier -
Constructor Summary
ConstructorsConstructorDescriptionVanillaWaypoint(int nearDistance, int farDistance, List<String> textures) Creates an instance of aVanillaWaypointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefarDistancerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thenearDistancerecord component.texturePath(org.geysermc.geyser.api.util.Identifier style, float distance) textures()Returns the value of thetexturesrecord component.org.cloudburstmc.math.vector.Vector2ftextureSize(org.geysermc.geyser.api.util.Identifier style, float distance) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
VANILLA_WAYPOINT_STYLE
public static final org.geysermc.geyser.api.util.Identifier VANILLA_WAYPOINT_STYLE -
VANILLA_DEFAULT
public static final org.geysermc.geyser.api.waypoint.CustomWaypointStyle VANILLA_DEFAULT
-
-
Constructor Details
-
VanillaWaypoint
Creates an instance of aVanillaWaypointrecord class.- Parameters:
nearDistance- the value for thenearDistancerecord componentfarDistance- the value for thefarDistancerecord componenttextures- the value for thetexturesrecord component
-
-
Method Details
-
texturePath
- Specified by:
texturePathin interfaceorg.geysermc.geyser.api.waypoint.CustomWaypointStyle
-
textureSize
public org.cloudburstmc.math.vector.Vector2f textureSize(org.geysermc.geyser.api.util.Identifier style, float distance) - Specified by:
textureSizein interfaceorg.geysermc.geyser.api.waypoint.CustomWaypointStyle
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
nearDistance
public int nearDistance()Returns the value of thenearDistancerecord component.- Returns:
- the value of the
nearDistancerecord component
-
farDistance
public int farDistance()Returns the value of thefarDistancerecord component.- Returns:
- the value of the
farDistancerecord component
-
textures
Returns the value of thetexturesrecord component.- Returns:
- the value of the
texturesrecord component
-