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/GlobalPos
intermediary net/minecraft/class_4208
official ji
named dimension
intermediary comp_2207
official d
named pos
intermediary comp_2208
official e
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<GlobalPos> private final RegistryKey
<World> The field for thedimension
record component.static final com.mojang.serialization.MapCodec
<GlobalPos> static final PacketCodec
<ByteBuf, GlobalPos> private final BlockPos
The field for thepos
record component. -
Constructor Summary
ConstructorDescriptionGlobalPos
(RegistryKey<World> dimension, BlockPos pos) Creates an instance of aGlobalPos
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalPos
create
(RegistryKey<World> dimension, BlockPos pos) Returns the value of thedimension
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.pos()
Returns the value of thepos
record component.toString()
Returns a string representation of this record class.
-
Field Details
-
dimension
The field for thedimension
record component. -
pos
The field for thepos
record component. -
MAP_CODEC
- Mappings:
Namespace Name Mixin selector named MAP_CODEC
Lnet/minecraft/util/math/GlobalPos;MAP_CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_49583
Lnet/minecraft/class_4208;field_49583:Lcom/mojang/serialization/MapCodec;
official a
Lji;a:Lcom/mojang/serialization/MapCodec;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/util/math/GlobalPos;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_25066
Lnet/minecraft/class_4208;field_25066:Lcom/mojang/serialization/Codec;
official b
Lji;b:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/util/math/GlobalPos;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48451
Lnet/minecraft/class_4208;field_48451:Lnet/minecraft/class_9139;
official c
Lji;c:Lys;
-
-
Constructor Details
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/math/GlobalPos;create(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/GlobalPos;
intermediary method_19443
Lnet/minecraft/class_4208;method_19443(Lnet/minecraft/class_5321;Lnet/minecraft/class_2338;)Lnet/minecraft/class_4208;
official a
Lji;a(Lakj;Lja;)Lji;
-
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 thedimension
record component.- Returns:
- the value of the
dimension
record component
-
pos
Returns the value of thepos
record component.- Returns:
- the value of the
pos
record component
-