Record Class VecDelta.Linear
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.VecDelta.Linear
- All Implemented Interfaces:
VecDelta
- Enclosing interface:
VecDelta
-
Nested Class Summary
Nested classes/interfaces inherited from interface VecDelta
VecDelta.Linear, VecDelta.Stepped -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final shortThe field for thexarecord component.private final shortThe field for theyarecord component.private final shortThe field for thezarecord component. -
Constructor Summary
ConstructorsConstructorDescriptionLinear(short xa, short ya, short za) Creates an instance of aLinearrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecode(VecDeltaCodec positionCodec) final booleanIndicates whether some other object is "equal to" this one.booleanbooleanfinal inthashCode()Returns a hash code value for this object.intfinal 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.
-
-
Constructor Details
-
Linear
public Linear(short xa, short ya, short za) Creates an instance of aLinearrecord class.- Parameters:
xa- the value for thexarecord componentya- the value for theyarecord componentza- the value for thezarecord component
-
-
Method Details
-
stepCount
-
hasDeltaX
-
hasDeltaZ
-
decode
-
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
-