Record Class MinecartStep
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.entity.MinecartStep
public record MinecartStep(double posX, double posY, double posZ, double motionX, double motionY, double motionZ, float yRot, float xRot, float weight)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMinecartStep(double posX, double posY, double posZ, double motionX, double motionY, double motionZ, float yRot, float xRot, float weight) Creates an instance of aMinecartSteprecord 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.doublemotionX()Returns the value of themotionXrecord component.doublemotionY()Returns the value of themotionYrecord component.doublemotionZ()Returns the value of themotionZrecord component.doubleposX()Returns the value of theposXrecord component.doubleposY()Returns the value of theposYrecord component.doubleposZ()Returns the value of theposZrecord component.final StringtoString()Returns a string representation of this record class.floatweight()Returns the value of theweightrecord component.floatxRot()Returns the value of thexRotrecord component.floatyRot()Returns the value of theyRotrecord component.
-
Constructor Details
-
MinecartStep
public MinecartStep(double posX, double posY, double posZ, double motionX, double motionY, double motionZ, float yRot, float xRot, float weight) Creates an instance of aMinecartSteprecord class.- Parameters:
posX- the value for theposXrecord componentposY- the value for theposYrecord componentposZ- the value for theposZrecord componentmotionX- the value for themotionXrecord componentmotionY- the value for themotionYrecord componentmotionZ- the value for themotionZrecord componentyRot- the value for theyRotrecord componentxRot- the value for thexRotrecord componentweight- the value for theweightrecord component
-
-
Method Details
-
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 '=='. -
posX
public double posX()Returns the value of theposXrecord component.- Returns:
- the value of the
posXrecord component
-
posY
public double posY()Returns the value of theposYrecord component.- Returns:
- the value of the
posYrecord component
-
posZ
public double posZ()Returns the value of theposZrecord component.- Returns:
- the value of the
posZrecord component
-
motionX
public double motionX()Returns the value of themotionXrecord component.- Returns:
- the value of the
motionXrecord component
-
motionY
public double motionY()Returns the value of themotionYrecord component.- Returns:
- the value of the
motionYrecord component
-
motionZ
public double motionZ()Returns the value of themotionZrecord component.- Returns:
- the value of the
motionZrecord component
-
yRot
public float yRot()Returns the value of theyRotrecord component.- Returns:
- the value of the
yRotrecord component
-
xRot
public float xRot()Returns the value of thexRotrecord component.- Returns:
- the value of the
xRotrecord component
-
weight
public float weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-