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
FieldsModifier and TypeFieldDescriptionprivate final floatThe field for thelowerProgressrecord component.private final floatThe field for theraiseBackProgressrecord component.private final floatThe field for theraiseProgressrecord component.private final floatThe field for theraiseProgressEndrecord component.private final floatThe field for theraiseProgressMiddlerecord component.private final floatThe field for theraiseProgressStartrecord component.private final floatThe field for theswayIntensityrecord component.private final floatThe field for theswayProgressrecord component.private final floatThe field for theswayScaleFastrecord component.private final floatThe field for theswayScaleSlowrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUseParams(float raiseProgress, float raiseProgressStart, float raiseProgressMiddle, float raiseProgressEnd, float swayProgress, float lowerProgress, float raiseBackProgress, float swayIntensity, float swayScaleSlow, float swayScaleFast) Creates an instance of aUseParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static SpearAnimations.UseParamsfromKineticWeapon(KineticWeapon kineticWeapon, float time) final inthashCode()Returns a hash code value for this object.floatReturns the value of thelowerProgressrecord component.floatReturns the value of theraiseBackProgressrecord component.floatReturns the value of theraiseProgressrecord component.floatReturns the value of theraiseProgressEndrecord component.floatReturns the value of theraiseProgressMiddlerecord component.floatReturns the value of theraiseProgressStartrecord component.floatReturns the value of theswayIntensityrecord component.floatReturns the value of theswayProgressrecord component.floatReturns the value of theswayScaleFastrecord component.floatReturns the value of theswayScaleSlowrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
raiseProgress
private final float raiseProgressThe field for theraiseProgressrecord component. -
raiseProgressStart
private final float raiseProgressStartThe field for theraiseProgressStartrecord component. -
raiseProgressMiddle
private final float raiseProgressMiddleThe field for theraiseProgressMiddlerecord component. -
raiseProgressEnd
private final float raiseProgressEndThe field for theraiseProgressEndrecord component. -
swayProgress
private final float swayProgressThe field for theswayProgressrecord component. -
lowerProgress
private final float lowerProgressThe field for thelowerProgressrecord component. -
raiseBackProgress
private final float raiseBackProgressThe field for theraiseBackProgressrecord component. -
swayIntensity
private final float swayIntensityThe field for theswayIntensityrecord component. -
swayScaleSlow
private final float swayScaleSlowThe field for theswayScaleSlowrecord component. -
swayScaleFast
private final float swayScaleFastThe field for theswayScaleFastrecord 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 aUseParamsrecord class.- Parameters:
raiseProgress- the value for theraiseProgressrecord componentraiseProgressStart- the value for theraiseProgressStartrecord componentraiseProgressMiddle- the value for theraiseProgressMiddlerecord componentraiseProgressEnd- the value for theraiseProgressEndrecord componentswayProgress- the value for theswayProgressrecord componentlowerProgress- the value for thelowerProgressrecord componentraiseBackProgress- the value for theraiseBackProgressrecord componentswayIntensity- the value for theswayIntensityrecord componentswayScaleSlow- the value for theswayScaleSlowrecord componentswayScaleFast- the value for theswayScaleFastrecord component
-
-
Method Details
-
fromKineticWeapon
-
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 with thecomparemethod from their corresponding wrapper classes. -
raiseProgress
public float raiseProgress()Returns the value of theraiseProgressrecord component.- Returns:
- the value of the
raiseProgressrecord component
-
raiseProgressStart
public float raiseProgressStart()Returns the value of theraiseProgressStartrecord component.- Returns:
- the value of the
raiseProgressStartrecord component
-
raiseProgressMiddle
public float raiseProgressMiddle()Returns the value of theraiseProgressMiddlerecord component.- Returns:
- the value of the
raiseProgressMiddlerecord component
-
raiseProgressEnd
public float raiseProgressEnd()Returns the value of theraiseProgressEndrecord component.- Returns:
- the value of the
raiseProgressEndrecord component
-
swayProgress
public float swayProgress()Returns the value of theswayProgressrecord component.- Returns:
- the value of the
swayProgressrecord component
-
lowerProgress
public float lowerProgress()Returns the value of thelowerProgressrecord component.- Returns:
- the value of the
lowerProgressrecord component
-
raiseBackProgress
public float raiseBackProgress()Returns the value of theraiseBackProgressrecord component.- Returns:
- the value of the
raiseBackProgressrecord component
-
swayIntensity
public float swayIntensity()Returns the value of theswayIntensityrecord component.- Returns:
- the value of the
swayIntensityrecord component
-
swayScaleSlow
public float swayScaleSlow()Returns the value of theswayScaleSlowrecord component.- Returns:
- the value of the
swayScaleSlowrecord component
-
swayScaleFast
public float swayScaleFast()Returns the value of theswayScaleFastrecord component.- Returns:
- the value of the
swayScaleFastrecord component
-