Record Class BreastPhysics.SwingState
java.lang.Object
java.lang.Record
com.wildfire.client.physics.BreastPhysics.SwingState
- Enclosing class:
BreastPhysics
@Internal
public static record BreastPhysics.SwingState(boolean isSwinging, int tick, int duration, net.minecraft.world.entity.HumanoidArm arm, float amplifier, float xAmplifier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSwingState(boolean isSwinging, int tick, int duration, net.minecraft.world.entity.HumanoidArm arm, float amplifier, float xAmplifier) Creates an instance of aSwingStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the value of theamplifierrecord component.net.minecraft.world.entity.HumanoidArmarm()Returns the value of thearmrecord component.intduration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSwingingrecord component.inttick()Returns the value of thetickrecord component.final StringtoString()Returns a string representation of this record class.floatReturns the value of thexAmplifierrecord component.
-
Constructor Details
-
SwingState
public SwingState(boolean isSwinging, int tick, int duration, net.minecraft.world.entity.HumanoidArm arm, float amplifier, float xAmplifier) Creates an instance of aSwingStaterecord class.- Parameters:
isSwinging- the value for theisSwingingrecord componenttick- the value for thetickrecord componentduration- the value for thedurationrecord componentarm- the value for thearmrecord componentamplifier- the value for theamplifierrecord componentxAmplifier- the value for thexAmplifierrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
isSwinging
public boolean isSwinging()Returns the value of theisSwingingrecord component.- Returns:
- the value of the
isSwingingrecord component
-
tick
public int tick()Returns the value of thetickrecord component.- Returns:
- the value of the
tickrecord component
-
duration
public int duration()Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-
arm
public net.minecraft.world.entity.HumanoidArm arm()Returns the value of thearmrecord component.- Returns:
- the value of the
armrecord component
-
amplifier
public float amplifier()Returns the value of theamplifierrecord component.- Returns:
- the value of the
amplifierrecord component
-
xAmplifier
public float xAmplifier()Returns the value of thexAmplifierrecord component.- Returns:
- the value of the
xAmplifierrecord component
-