Record Class VecDelta.Stepped.DeltaStep
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.VecDelta.Stepped.DeltaStep
- Enclosing class:
VecDelta.Stepped
public static record VecDelta.Stepped.DeltaStep(short xa, short ya, short za, int ticks)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeltaStep(short xa, short ya, short za, int ticks) Creates an instance of aDeltaSteprecord 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.intticks()Returns the value of theticksrecord component.final StringtoString()Returns a string representation of this record class.shortxa()Returns the value of thexarecord component.shortya()Returns the value of theyarecord component.shortza()Returns the value of thezarecord component.
-
Field Details
-
xa
private final short xaThe field for thexarecord component. -
ya
private final short yaThe field for theyarecord component. -
za
private final short zaThe field for thezarecord component. -
ticks
private final int ticksThe field for theticksrecord component.
-
-
Constructor Details
-
DeltaStep
public DeltaStep(short xa, short ya, short za, int ticks) Creates an instance of aDeltaSteprecord class.- Parameters:
xa- the value for thexarecord componentya- the value for theyarecord componentza- the value for thezarecord componentticks- the value for theticksrecord 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. -
xa
public short xa()Returns the value of thexarecord component.- Returns:
- the value of the
xarecord component
-
ya
public short ya()Returns the value of theyarecord component.- Returns:
- the value of the
yarecord component
-
za
public short za()Returns the value of thezarecord component.- Returns:
- the value of the
zarecord component
-
ticks
public int ticks()Returns the value of theticksrecord component.- Returns:
- the value of the
ticksrecord component
-