Record Class VecDelta.Stepped
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.VecDelta.Stepped
- All Implemented Interfaces:
VecDelta
- Enclosing interface:
VecDelta
public static record VecDelta.Stepped(List<VecDelta.Stepped.DeltaStep> steps)
extends Record
implements VecDelta
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface VecDelta
VecDelta.Linear, VecDelta.Stepped -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final List<VecDelta.Stepped.DeltaStep> The field for thestepsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionStepped(List<VecDelta.Stepped.DeltaStep> steps) Creates an instance of aSteppedrecord 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.intsteps()Returns the value of thestepsrecord component.final StringtoString()Returns a string representation of this record class.static @Nullable VecDelta.SteppedtryEncode(VecDeltaCodec positionCodec, List<PositionStep> steps)
-
Field Details
-
steps
The field for thestepsrecord component. -
MIN_BYTES_PER_STEP
private static final int MIN_BYTES_PER_STEP- See Also:
-
-
Constructor Details
-
Stepped
Creates an instance of aSteppedrecord class.- Parameters:
steps- the value for thestepsrecord component
-
-
Method Details
-
stepCount
-
hasDeltaX
-
hasDeltaZ
-
decode
-
tryEncode
public static @Nullable VecDelta.Stepped tryEncode(VecDeltaCodec positionCodec, List<PositionStep> steps) -
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 withObjects::equals(Object,Object). -
steps
Returns the value of thestepsrecord component.- Returns:
- the value of the
stepsrecord component
-