Record Class PlayerPosture.Input
java.lang.Object
java.lang.Record
net.raphimc.viabedrock.api.model.PlayerPosture.Input
- Enclosing class:
PlayerPosture
public static record PlayerPosture.Input(boolean sneakHeld, boolean sneakDisabled, boolean forceStanding, boolean inWater, float movementSquared, boolean crawlingAllowed)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInput(boolean sneakHeld, boolean sneakDisabled, boolean forceStanding, boolean inWater, float movementSquared, boolean crawlingAllowed) Creates an instance of aInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecrawlingAllowedrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceStandingrecord component.final inthashCode()Returns a hash code value for this object.booleaninWater()Returns the value of theinWaterrecord component.floatReturns the value of themovementSquaredrecord component.booleanReturns the value of thesneakDisabledrecord component.booleanReturns the value of thesneakHeldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Input
public Input(boolean sneakHeld, boolean sneakDisabled, boolean forceStanding, boolean inWater, float movementSquared, boolean crawlingAllowed) Creates an instance of aInputrecord class.- Parameters:
sneakHeld- the value for thesneakHeldrecord componentsneakDisabled- the value for thesneakDisabledrecord componentforceStanding- the value for theforceStandingrecord componentinWater- the value for theinWaterrecord componentmovementSquared- the value for themovementSquaredrecord componentcrawlingAllowed- the value for thecrawlingAllowedrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
sneakHeld
public boolean sneakHeld()Returns the value of thesneakHeldrecord component.- Returns:
- the value of the
sneakHeldrecord component
-
sneakDisabled
public boolean sneakDisabled()Returns the value of thesneakDisabledrecord component.- Returns:
- the value of the
sneakDisabledrecord component
-
forceStanding
public boolean forceStanding()Returns the value of theforceStandingrecord component.- Returns:
- the value of the
forceStandingrecord component
-
inWater
public boolean inWater()Returns the value of theinWaterrecord component.- Returns:
- the value of the
inWaterrecord component
-
movementSquared
public float movementSquared()Returns the value of themovementSquaredrecord component.- Returns:
- the value of the
movementSquaredrecord component
-
crawlingAllowed
public boolean crawlingAllowed()Returns the value of thecrawlingAllowedrecord component.- Returns:
- the value of the
crawlingAllowedrecord component
-