Package net.minecraft.util.math
Record Class ColumnPos
java.lang.Object
java.lang.Record
net.minecraft.util.math.ColumnPos
- Record Components:
x-z-
- Mappings:
Namespace Name official adwintermediary net/minecraft/class_2265named net/minecraft/util/math/ColumnPosofficial aintermediary comp_638named xofficial bintermediary comp_639named z
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.static intmethod_42106(long long2) static intmethod_42107(long long2) longpack()static longpack(int x, int z) toString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Field Details
-
x
private final int xThe field for thexrecord component. -
z
private final int zThe field for thezrecord component. -
field_29757
private static final long field_29757- See Also:
- Mappings:
Namespace Name Mixin selector official cLadw;c:Jintermediary field_29757Lnet/minecraft/class_2265;field_29757:Jnamed field_29757Lnet/minecraft/util/math/ColumnPos;field_29757:J
-
field_29758
private static final long field_29758- See Also:
- Mappings:
Namespace Name Mixin selector official dLadw;d:Jintermediary field_29758Lnet/minecraft/class_2265;field_29758:Jnamed field_29758Lnet/minecraft/util/math/ColumnPos;field_29758:J
-
-
Constructor Details
-
ColumnPos
public ColumnPos(int int2, int int3)
-
-
Method Details
-
toChunkPos
- Mappings:
Namespace Name Mixin selector official aLadw;a()Lcce;intermediary method_34873Lnet/minecraft/class_2265;method_34873()Lnet/minecraft/class_1923;named toChunkPosLnet/minecraft/util/math/ColumnPos;toChunkPos()Lnet/minecraft/util/math/ChunkPos;
-
pack
public long pack()- Mappings:
Namespace Name Mixin selector official bLadw;b()Jintermediary method_34875Lnet/minecraft/class_2265;method_34875()Jnamed packLnet/minecraft/util/math/ColumnPos;pack()J
-
pack
public static long pack(int x, int z) - Mappings:
Namespace Name Mixin selector official aLadw;a(II)Jintermediary method_34874Lnet/minecraft/class_2265;method_34874(II)Jnamed packLnet/minecraft/util/math/ColumnPos;pack(II)J
-
method_42106
public static int method_42106(long long2) - Mappings:
Namespace Name Mixin selector official aLadw;a(J)Iintermediary method_42106Lnet/minecraft/class_2265;method_42106(J)Inamed method_42106Lnet/minecraft/util/math/ColumnPos;method_42106(J)I
-
method_42107
public static int method_42107(long long2) - Mappings:
Namespace Name Mixin selector official bLadw;b(J)Iintermediary method_42107Lnet/minecraft/class_2265;method_42107(J)Inamed method_42107Lnet/minecraft/util/math/ColumnPos;method_42107(J)I
-
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. -
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. -
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 '=='. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-