Record Class ColumnPos

java.lang.Object
java.lang.Record
net.minecraft.util.math.ColumnPos
Record Components:
x -
z -

public record ColumnPos(int x, int z) extends Record
Mappings:
Namespace Name
named net/minecraft/util/math/ColumnPos
intermediary net/minecraft/class_2265
official aqv
named x
intermediary comp_638
official a
named z
intermediary comp_639
official b
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final long
     
    private static final long
     
    private final int
    The field for the x record component.
    private final int
    The field for the z record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ColumnPos(int int2, int int3)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    static int
    getX(long packed)
     
    static int
    getZ(long packed)
     
    int
    Returns a hash code value for this object.
    long
     
    static long
    pack(int x, int z)
     
     
    Returns a string representation of this record class.
    int
    x()
    Returns the value of the x record component.
    int
    z()
    Returns the value of the z record component.

    Methods inherited from class java.lang.Object

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

    • x

      private final int x
      The field for the x record component.
    • z

      private final int z
      The field for the z record component.
    • field_29757

      private static final long field_29757
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_29757 Lnet/minecraft/util/math/ColumnPos;field_29757:J
      intermediary field_29757 Lnet/minecraft/class_2265;field_29757:J
      official c Laqv;c:J
    • field_29758

      private static final long field_29758
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_29758 Lnet/minecraft/util/math/ColumnPos;field_29758:J
      intermediary field_29758 Lnet/minecraft/class_2265;field_29758:J
      official d Laqv;d:J
  • Constructor Details

    • ColumnPos

      public ColumnPos(int int2, int int3)
  • Method Details

    • toChunkPos

      public ChunkPos toChunkPos()
      Mappings:
      Namespace Name Mixin selector
      named toChunkPos Lnet/minecraft/util/math/ColumnPos;toChunkPos()Lnet/minecraft/util/math/ChunkPos;
      intermediary method_34873 Lnet/minecraft/class_2265;method_34873()Lnet/minecraft/class_1923;
      official a Laqv;a()Ldbg;
    • pack

      public long pack()
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/util/math/ColumnPos;pack()J
      intermediary method_34875 Lnet/minecraft/class_2265;method_34875()J
      official b Laqv;b()J
    • pack

      public static long pack(int x, int z)
      Mappings:
      Namespace Name Mixin selector
      named pack Lnet/minecraft/util/math/ColumnPos;pack(II)J
      intermediary method_34874 Lnet/minecraft/class_2265;method_34874(II)J
      official a Laqv;a(II)J
    • getX

      public static int getX(long packed)
      Mappings:
      Namespace Name Mixin selector
      named getX Lnet/minecraft/util/math/ColumnPos;getX(J)I
      intermediary method_42106 Lnet/minecraft/class_2265;method_42106(J)I
      official a Laqv;a(J)I
    • getZ

      public static int getZ(long packed)
      Mappings:
      Namespace Name Mixin selector
      named getZ Lnet/minecraft/util/math/ColumnPos;getZ(J)I
      intermediary method_42107 Lnet/minecraft/class_2265;method_42107(J)I
      official b Laqv;b(J)I
    • toString

      public 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 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 '=='.
      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.
    • x

      public int x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • z

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