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
    Modifier and Type
    Field
    Description
    private final int
    The field for the ticks record component.
    private final short
    The field for the xa record component.
    private final short
    The field for the ya record component.
    private final short
    The field for the za record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    DeltaStep(short xa, short ya, short za, int ticks)
    Creates an instance of a DeltaStep record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the ticks record component.
    final String
    Returns a string representation of this record class.
    short
    xa()
    Returns the value of the xa record component.
    short
    ya()
    Returns the value of the ya record component.
    short
    za()
    Returns the value of the za record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • xa

      private final short xa
      The field for the xa record component.
    • ya

      private final short ya
      The field for the ya record component.
    • za

      private final short za
      The field for the za record component.
    • ticks

      private final int ticks
      The field for the ticks record component.
  • Constructor Details

    • DeltaStep

      public DeltaStep(short xa, short ya, short za, int ticks)
      Creates an instance of a DeltaStep record class.
      Parameters:
      xa - the value for the xa record component
      ya - the value for the ya record component
      za - the value for the za record component
      ticks - the value for the ticks record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • xa

      public short xa()
      Returns the value of the xa record component.
      Returns:
      the value of the xa record component
    • ya

      public short ya()
      Returns the value of the ya record component.
      Returns:
      the value of the ya record component
    • za

      public short za()
      Returns the value of the za record component.
      Returns:
      the value of the za record component
    • ticks

      public int ticks()
      Returns the value of the ticks record component.
      Returns:
      the value of the ticks record component