Record Class EntityTracker1_9.PendingPotionEntity
java.lang.Object
java.lang.Record
com.viaversion.viarewind.protocol.v1_9to1_8.storage.EntityTracker1_9.PendingPotionEntity
- Enclosing class:
- EntityTracker1_9
public static record EntityTracker1_9.PendingPotionEntity(int x, int y, int z, byte pitch, byte yaw, short velocityX, short velocityY, short velocityZ)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPendingPotionEntity(int x, int y, int z, byte pitch, byte yaw, short velocityX, short velocityY, short velocityZ) Creates an instance of aPendingPotionEntityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.bytepitch()Returns the value of thepitchrecord component.final StringtoString()Returns a string representation of this record class.shortReturns the value of thevelocityXrecord component.shortReturns the value of thevelocityYrecord component.shortReturns the value of thevelocityZrecord component.withPosition(int x, int y, int z, byte pitch, byte yaw) withVelocity(short velocityX, short velocityY, short velocityZ) intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.byteyaw()Returns the value of theyawrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
PendingPotionEntity
public PendingPotionEntity(int x, int y, int z, byte pitch, byte yaw, short velocityX, short velocityY, short velocityZ) Creates an instance of aPendingPotionEntityrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentpitch- the value for thepitchrecord componentyaw- the value for theyawrecord componentvelocityX- the value for thevelocityXrecord componentvelocityY- the value for thevelocityYrecord componentvelocityZ- the value for thevelocityZrecord component
-
-
Method Details
-
withPosition
-
withVelocity
public EntityTracker1_9.PendingPotionEntity withVelocity(short velocityX, short velocityY, short velocityZ) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
pitch
public byte pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
yaw
public byte yaw()Returns the value of theyawrecord component.- Returns:
- the value of the
yawrecord component
-
velocityX
public short velocityX()Returns the value of thevelocityXrecord component.- Returns:
- the value of the
velocityXrecord component
-
velocityY
public short velocityY()Returns the value of thevelocityYrecord component.- Returns:
- the value of the
velocityYrecord component
-
velocityZ
public short velocityZ()Returns the value of thevelocityZrecord component.- Returns:
- the value of the
velocityZrecord component
-