Record Class SpearAnimations.UseParams

java.lang.Object
java.lang.Record
net.minecraft.client.model.effects.SpearAnimations.UseParams
Enclosing class:
SpearAnimations

static record SpearAnimations.UseParams(float raiseProgress, float raiseProgressStart, float raiseProgressMiddle, float raiseProgressEnd, float swayProgress, float lowerProgress, float raiseBackProgress, float swayIntensity, float swayScaleSlow, float swayScaleFast) extends Record
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final float
    The field for the lowerProgress record component.
    private final float
    The field for the raiseBackProgress record component.
    private final float
    The field for the raiseProgress record component.
    private final float
    The field for the raiseProgressEnd record component.
    private final float
    The field for the raiseProgressMiddle record component.
    private final float
    The field for the raiseProgressStart record component.
    private final float
    The field for the swayIntensity record component.
    private final float
    The field for the swayProgress record component.
    private final float
    The field for the swayScaleFast record component.
    private final float
    The field for the swayScaleSlow record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UseParams(float raiseProgress, float raiseProgressStart, float raiseProgressMiddle, float raiseProgressEnd, float swayProgress, float lowerProgress, float raiseBackProgress, float swayIntensity, float swayScaleSlow, float swayScaleFast)
    Creates an instance of a UseParams record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    fromKineticWeapon(KineticWeapon kineticWeapon, float time)
     
    final int
    Returns a hash code value for this object.
    float
    Returns the value of the lowerProgress record component.
    float
    Returns the value of the raiseBackProgress record component.
    float
    Returns the value of the raiseProgress record component.
    float
    Returns the value of the raiseProgressEnd record component.
    float
    Returns the value of the raiseProgressMiddle record component.
    float
    Returns the value of the raiseProgressStart record component.
    float
    Returns the value of the swayIntensity record component.
    float
    Returns the value of the swayProgress record component.
    float
    Returns the value of the swayScaleFast record component.
    float
    Returns the value of the swayScaleSlow 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
  • Field Details

    • raiseProgress

      private final float raiseProgress
      The field for the raiseProgress record component.
    • raiseProgressStart

      private final float raiseProgressStart
      The field for the raiseProgressStart record component.
    • raiseProgressMiddle

      private final float raiseProgressMiddle
      The field for the raiseProgressMiddle record component.
    • raiseProgressEnd

      private final float raiseProgressEnd
      The field for the raiseProgressEnd record component.
    • swayProgress

      private final float swayProgress
      The field for the swayProgress record component.
    • lowerProgress

      private final float lowerProgress
      The field for the lowerProgress record component.
    • raiseBackProgress

      private final float raiseBackProgress
      The field for the raiseBackProgress record component.
    • swayIntensity

      private final float swayIntensity
      The field for the swayIntensity record component.
    • swayScaleSlow

      private final float swayScaleSlow
      The field for the swayScaleSlow record component.
    • swayScaleFast

      private final float swayScaleFast
      The field for the swayScaleFast record component.
  • Constructor Details

    • UseParams

      UseParams(float raiseProgress, float raiseProgressStart, float raiseProgressMiddle, float raiseProgressEnd, float swayProgress, float lowerProgress, float raiseBackProgress, float swayIntensity, float swayScaleSlow, float swayScaleFast)
      Creates an instance of a UseParams record class.
      Parameters:
      raiseProgress - the value for the raiseProgress record component
      raiseProgressStart - the value for the raiseProgressStart record component
      raiseProgressMiddle - the value for the raiseProgressMiddle record component
      raiseProgressEnd - the value for the raiseProgressEnd record component
      swayProgress - the value for the swayProgress record component
      lowerProgress - the value for the lowerProgress record component
      raiseBackProgress - the value for the raiseBackProgress record component
      swayIntensity - the value for the swayIntensity record component
      swayScaleSlow - the value for the swayScaleSlow record component
      swayScaleFast - the value for the swayScaleFast record component
  • Method Details

    • fromKineticWeapon

      public static SpearAnimations.UseParams fromKineticWeapon(KineticWeapon kineticWeapon, float time)
    • 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.
    • raiseProgress

      public float raiseProgress()
      Returns the value of the raiseProgress record component.
      Returns:
      the value of the raiseProgress record component
    • raiseProgressStart

      public float raiseProgressStart()
      Returns the value of the raiseProgressStart record component.
      Returns:
      the value of the raiseProgressStart record component
    • raiseProgressMiddle

      public float raiseProgressMiddle()
      Returns the value of the raiseProgressMiddle record component.
      Returns:
      the value of the raiseProgressMiddle record component
    • raiseProgressEnd

      public float raiseProgressEnd()
      Returns the value of the raiseProgressEnd record component.
      Returns:
      the value of the raiseProgressEnd record component
    • swayProgress

      public float swayProgress()
      Returns the value of the swayProgress record component.
      Returns:
      the value of the swayProgress record component
    • lowerProgress

      public float lowerProgress()
      Returns the value of the lowerProgress record component.
      Returns:
      the value of the lowerProgress record component
    • raiseBackProgress

      public float raiseBackProgress()
      Returns the value of the raiseBackProgress record component.
      Returns:
      the value of the raiseBackProgress record component
    • swayIntensity

      public float swayIntensity()
      Returns the value of the swayIntensity record component.
      Returns:
      the value of the swayIntensity record component
    • swayScaleSlow

      public float swayScaleSlow()
      Returns the value of the swayScaleSlow record component.
      Returns:
      the value of the swayScaleSlow record component
    • swayScaleFast

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