Record Class PhysicalActorState.CorrectionValues
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.movement.replay.PhysicalActorState.CorrectionValues
- Enclosing class:
PhysicalActorState
public static record PhysicalActorState.CorrectionValues(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.protocol.model.Position3f motion, boolean onGround, net.raphimc.viabedrock.protocol.model.Position2f rotation, Float angular, boolean passenger, boolean authoritative, UUID controller)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCorrectionValues(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.protocol.model.Position3f motion, boolean onGround, net.raphimc.viabedrock.protocol.model.Position2f rotation, Float angular, boolean passenger, boolean authoritative, UUID controller) Creates an instance of aCorrectionValuesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionangular()Returns the value of theangularrecord component.booleanReturns the value of theauthoritativerecord component.Returns the value of thecontrollerrecord component.booleandiffers(net.raphimc.viabedrock.api.model.PlayerCorrection command) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.raphimc.viabedrock.protocol.model.Position3fmotion()Returns the value of themotionrecord component.booleanonGround()Returns the value of theonGroundrecord component.booleanReturns the value of thepassengerrecord component.net.raphimc.viabedrock.protocol.model.Position3fposition()Returns the value of thepositionrecord component.net.raphimc.viabedrock.protocol.model.Position2frotation()Returns the value of therotationrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CorrectionValues
public CorrectionValues(net.raphimc.viabedrock.protocol.model.Position3f position, net.raphimc.viabedrock.protocol.model.Position3f motion, boolean onGround, net.raphimc.viabedrock.protocol.model.Position2f rotation, Float angular, boolean passenger, boolean authoritative, UUID controller) Creates an instance of aCorrectionValuesrecord class.- Parameters:
position- the value for thepositionrecord componentmotion- the value for themotionrecord componentonGround- the value for theonGroundrecord componentrotation- the value for therotationrecord componentangular- the value for theangularrecord componentpassenger- the value for thepassengerrecord componentauthoritative- the value for theauthoritativerecord componentcontroller- the value for thecontrollerrecord component
-
-
Method Details
-
differs
public boolean differs(net.raphimc.viabedrock.api.model.PlayerCorrection command) -
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. -
position
public net.raphimc.viabedrock.protocol.model.Position3f position()Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-
motion
public net.raphimc.viabedrock.protocol.model.Position3f motion()Returns the value of themotionrecord component.- Returns:
- the value of the
motionrecord component
-
onGround
public boolean onGround()Returns the value of theonGroundrecord component.- Returns:
- the value of the
onGroundrecord component
-
rotation
public net.raphimc.viabedrock.protocol.model.Position2f rotation()Returns the value of therotationrecord component.- Returns:
- the value of the
rotationrecord component
-
angular
Returns the value of theangularrecord component.- Returns:
- the value of the
angularrecord component
-
passenger
public boolean passenger()Returns the value of thepassengerrecord component.- Returns:
- the value of the
passengerrecord component
-
authoritative
public boolean authoritative()Returns the value of theauthoritativerecord component.- Returns:
- the value of the
authoritativerecord component
-
controller
Returns the value of thecontrollerrecord component.- Returns:
- the value of the
controllerrecord component
-