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

public record VanillaWaypoint(int nearDistance, int farDistance, List<String> textures) extends Record implements org.geysermc.geyser.api.waypoint.CustomWaypointStyle
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from interface org.geysermc.geyser.api.waypoint.CustomWaypointStyle

    org.geysermc.geyser.api.waypoint.CustomWaypointStyle.VanillaBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.geysermc.geyser.api.waypoint.CustomWaypointStyle
     
    static final org.geysermc.geyser.api.util.Identifier
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    VanillaWaypoint(int nearDistance, int farDistance, List<String> textures)
    Creates an instance of a VanillaWaypoint record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    int
    Returns the value of the farDistance record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the nearDistance record component.
    texturePath(org.geysermc.geyser.api.util.Identifier style, float distance)
     
    Returns the value of the textures record component.
    org.cloudburstmc.math.vector.Vector2f
    textureSize(org.geysermc.geyser.api.util.Identifier style, float distance)
     
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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

      public VanillaWaypoint(int nearDistance, int farDistance, List<String> textures)
      Creates an instance of a VanillaWaypoint record class.
      Parameters:
      nearDistance - the value for the nearDistance record component
      farDistance - the value for the farDistance record component
      textures - the value for the textures record component
  • Method Details

    • texturePath

      public String texturePath(org.geysermc.geyser.api.util.Identifier style, float distance)
      Specified by:
      texturePath in interface org.geysermc.geyser.api.waypoint.CustomWaypointStyle
    • textureSize

      public org.cloudburstmc.math.vector.Vector2f textureSize(org.geysermc.geyser.api.util.Identifier style, float distance)
      Specified by:
      textureSize in interface org.geysermc.geyser.api.waypoint.CustomWaypointStyle
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • nearDistance

      public int nearDistance()
      Returns the value of the nearDistance record component.
      Returns:
      the value of the nearDistance record component
    • farDistance

      public int farDistance()
      Returns the value of the farDistance record component.
      Returns:
      the value of the farDistance record component
    • textures

      public List<String> textures()
      Returns the value of the textures record component.
      Returns:
      the value of the textures record component