public final class GlobalPos extends java.lang.Object implements IDynamicSerializable
Modifier and Type | Field and Description |
---|---|
private DimensionType |
dimension |
private BlockPos |
pos |
Modifier | Constructor and Description |
---|---|
private |
GlobalPos(DimensionType dimension,
BlockPos pos) |
Modifier and Type | Method and Description |
---|---|
static GlobalPos |
deserialize(com.mojang.datafixers.Dynamic<?> p_218176_0_) |
boolean |
equals(java.lang.Object p_equals_1_) |
DimensionType |
getDimension() |
BlockPos |
getPos() |
int |
hashCode() |
static GlobalPos |
of(DimensionType p_218179_0_,
BlockPos pos) |
<T> T |
serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_) |
java.lang.String |
toString() |
private final DimensionType dimension
private final BlockPos pos
private GlobalPos(DimensionType dimension, BlockPos pos)
public static GlobalPos of(DimensionType p_218179_0_, BlockPos pos)
public static GlobalPos deserialize(com.mojang.datafixers.Dynamic<?> p_218176_0_)
public DimensionType getDimension()
public BlockPos getPos()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public <T> T serialize(com.mojang.datafixers.types.DynamicOps<T> p_218175_1_)
serialize
in interface IDynamicSerializable
public java.lang.String toString()
toString
in class java.lang.Object