Record Class EquipmentSet.SpearProperties

java.lang.Object
java.lang.Record
net.rebel459.unified.api.data.set.EquipmentSet.SpearProperties
Enclosing class:
EquipmentSet

public static record EquipmentSet.SpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold)
    Creates an instance of a SpearProperties record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Returns the value of the attackDuration record component.
    float
    Returns the value of the damageMultiplier record component.
    float
    Returns the value of the damageThreshold record component.
    float
    Returns the value of the damageTime record component.
    float
    Returns the value of the delay record component.
    float
    Returns the value of the dismountThreshold record component.
    float
    Returns the value of the dismountTime record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the knockbackThreshold record component.
    float
    Returns the value of the knockbackTime record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SpearProperties

      public SpearProperties(float attackDuration, float damageMultiplier, float delay, float dismountTime, float dismountThreshold, float knockbackTime, float knockbackThreshold, float damageTime, float damageThreshold)
      Creates an instance of a SpearProperties record class.
      Parameters:
      attackDuration - the value for the attackDuration record component
      damageMultiplier - the value for the damageMultiplier record component
      delay - the value for the delay record component
      dismountTime - the value for the dismountTime record component
      dismountThreshold - the value for the dismountThreshold record component
      knockbackTime - the value for the knockbackTime record component
      knockbackThreshold - the value for the knockbackThreshold record component
      damageTime - the value for the damageTime record component
      damageThreshold - the value for the damageThreshold record component
  • Method Details

    • 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. All components in this record class are compared with the compare method from their corresponding wrapper classes.
      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.
    • attackDuration

      public float attackDuration()
      Returns the value of the attackDuration record component.
      Returns:
      the value of the attackDuration record component
    • damageMultiplier

      public float damageMultiplier()
      Returns the value of the damageMultiplier record component.
      Returns:
      the value of the damageMultiplier record component
    • delay

      public float delay()
      Returns the value of the delay record component.
      Returns:
      the value of the delay record component
    • dismountTime

      public float dismountTime()
      Returns the value of the dismountTime record component.
      Returns:
      the value of the dismountTime record component
    • dismountThreshold

      public float dismountThreshold()
      Returns the value of the dismountThreshold record component.
      Returns:
      the value of the dismountThreshold record component
    • knockbackTime

      public float knockbackTime()
      Returns the value of the knockbackTime record component.
      Returns:
      the value of the knockbackTime record component
    • knockbackThreshold

      public float knockbackThreshold()
      Returns the value of the knockbackThreshold record component.
      Returns:
      the value of the knockbackThreshold record component
    • damageTime

      public float damageTime()
      Returns the value of the damageTime record component.
      Returns:
      the value of the damageTime record component
    • damageThreshold

      public float damageThreshold()
      Returns the value of the damageThreshold record component.
      Returns:
      the value of the damageThreshold record component