Record Class GhostMovement
java.lang.Object
java.lang.Record
com.iantapply.conflux.api.GhostMovement
- Record Components:
playerId- unique identifier of the remote playerworld- logical world namex- world x-coordinatey- world y-coordinatez- world z-coordinateyaw- horizontal rotation in degreespitch- vertical rotation in degreesonGround- whether the player is touching the groundsneaking- whether the player is sneakingsprinting- whether the player is sprintingswimming- whether the player is swimminggliding- whether the player is gliding
-
Constructor Summary
ConstructorsConstructorDescriptionGhostMovement(UUID playerId, String world, double x, double y, double z, float yaw, float pitch, boolean onGround, boolean sneaking, boolean sprinting, boolean swimming, boolean gliding) Validates a movement snapshot. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleangliding()Returns the value of theglidingrecord component.final inthashCode()Returns a hash code value for this object.booleanonGround()Returns the value of theonGroundrecord component.floatpitch()Returns the value of thepitchrecord component.playerId()Returns the value of theplayerIdrecord component.booleansneaking()Returns the value of thesneakingrecord component.booleanReturns the value of thesprintingrecord component.booleanswimming()Returns the value of theswimmingrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.floatyaw()Returns the value of theyawrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
GhostMovement
-
-
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. -
playerId
-
world
-
x
-
y
-
z
-
yaw
-
pitch
-
onGround
-
sneaking
-
sprinting
-
swimming
-
gliding
-