public final class GlobalPos extends Object
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<GlobalPos> |
CODEC |
private RegistryKey<World> |
dimension |
private BlockPos |
pos |
Modifier | Constructor and Description |
---|---|
private |
GlobalPos(RegistryKey<World> dimension,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
static GlobalPos |
create(RegistryKey<World> dimension,
BlockPos pos) |
boolean |
equals(Object o) |
RegistryKey<World> |
getDimension() |
BlockPos |
getPos() |
int |
hashCode() |
String |
toString() |
public static final com.mojang.serialization.Codec<GlobalPos> CODEC
private final RegistryKey<World> dimension
private final BlockPos pos
private GlobalPos(RegistryKey<World> dimension, BlockPos pos)
public static GlobalPos create(RegistryKey<World> dimension, BlockPos pos)
public RegistryKey<World> getDimension()
public BlockPos getPos()