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 - named - net/minecraft/util/math/ColumnPos- intermediary - net/minecraft/class_2265- official - aqp- named - x- intermediary - comp_638- official - a- named - z- intermediary - comp_639- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static intgetX(long packed) static intgetZ(long packed) inthashCode()Returns a hash code value for this object.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- 
xprivate final int xThe field for thexrecord component.
- 
zprivate final int zThe field for thezrecord component.
- 
field_29757private 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- Laqp;c:J
 
- 
field_29758private 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- Laqp;d:J
 
 
- 
- 
Constructor Details- 
ColumnPospublic ColumnPos(int int2, int int3) 
 
- 
- 
Method Details- 
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- Laqp;a()Ldfp;
 
- 
packpublic 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- Laqp;b()J
 
- 
packpublic 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- Laqp;a(II)J
 
- 
getXpublic 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- Laqp;a(J)I
 
- 
getZpublic 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- Laqp;b(J)I
 
- 
toStringReturns 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.
- 
hashCodepublic int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates 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 '=='.
- 
xpublic int x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
zpublic int z()Returns the value of thezrecord component.- Returns:
- the value of the zrecord component
 
 
-