Package net.minecraft.util.math
Class GlobalPos
- java.lang.Object
-
- net.minecraft.util.math.GlobalPos
-
public final class GlobalPos extends java.lang.Object
-
-
Constructor Summary
Constructors Modifier Constructor Description private
GlobalPos(RegistryKey<World> p_i232508_1_, BlockPos p_i232508_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistryKey<World>
dimension()
boolean
equals(java.lang.Object p_equals_1_)
int
hashCode()
static GlobalPos
of(RegistryKey<World> p_239648_0_, BlockPos p_239648_1_)
BlockPos
pos()
java.lang.String
toString()
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<GlobalPos> CODEC
-
dimension
private final RegistryKey<World> dimension
-
pos
private final BlockPos pos
-
-
Constructor Detail
-
GlobalPos
private GlobalPos(RegistryKey<World> p_i232508_1_, BlockPos p_i232508_2_)
-
-
Method Detail
-
of
public static GlobalPos of(RegistryKey<World> p_239648_0_, BlockPos p_239648_1_)
-
dimension
public RegistryKey<World> dimension()
-
pos
public BlockPos pos()
-
equals
public boolean equals(java.lang.Object p_equals_1_)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-