Package net.minecraft.util.math
Record Class GlobalPos
java.lang.Object
java.lang.Record
net.minecraft.util.math.GlobalPos
- Record Components:
dimension-pos-
- Mappings:
Namespace Name named net/minecraft/util/math/GlobalPosintermediary net/minecraft/class_4208official jlnamed dimensionintermediary comp_2207official dnamed posintermediary comp_2208official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<GlobalPos> private final RegistryKey<World> The field for thedimensionrecord component.static final com.mojang.serialization.MapCodec<GlobalPos> static final PacketCodec<ByteBuf, GlobalPos> private final BlockPosThe field for theposrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionGlobalPos(RegistryKey<World> dimension, BlockPos pos) Creates an instance of aGlobalPosrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalPoscreate(RegistryKey<World> dimension, BlockPos pos) Returns the value of thedimensionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimensionrecord component. -
pos
The field for theposrecord component. -
MAP_CODEC
- Mappings:
Namespace Name Mixin selector named MAP_CODECLnet/minecraft/util/math/GlobalPos;MAP_CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_49583Lnet/minecraft/class_4208;field_49583:Lcom/mojang/serialization/MapCodec;official aLjl;a:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/util/math/GlobalPos;CODEC:Lcom/mojang/serialization/Codec;intermediary field_25066Lnet/minecraft/class_4208;field_25066:Lcom/mojang/serialization/Codec;official bLjl;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/util/math/GlobalPos;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_48451Lnet/minecraft/class_4208;field_48451:Lnet/minecraft/class_9139;official cLjl;c:Lyx;
-
-
Constructor Details
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named createLnet/minecraft/util/math/GlobalPos;create(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/GlobalPos;intermediary method_19443Lnet/minecraft/class_4208;method_19443(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;)Lnet/minecraft/class_4208;official aLjl;a(Lakq;Ljd;)Ljl;
-
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 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. -
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). -
dimension
Returns the value of thedimensionrecord component.- Returns:
- the value of the
dimensionrecord component
-
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-