public static final class Dimension.Anchor
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable
Modifier and Type | Field and Description |
---|---|
int |
dim
The game dimension to which this anchor refers.
|
static Dimension.Anchor |
END_DETAIL
Convenience constant for the default End dimension (End detail dimension, not inverted, layer zero).
|
static Dimension.Anchor |
END_DETAIL_CEILING
Convenience constant for the default End dimension ceiling (End detail dimension, inverted, layer zero).
|
int |
id
|
boolean |
invert
Whether this anchor should be exported inverted (e.g.
|
static Dimension.Anchor |
NETHER_DETAIL
Convenience constant for the default Nether dimension (Nether detail dimension, not inverted, layer zero).
|
static Dimension.Anchor |
NETHER_DETAIL_CEILING
Convenience constant for the default Nether dimension ceiling (Nether detail dimension, inverted, layer zero).
|
static Dimension.Anchor |
NORMAL_DETAIL
Convenience constant for the default dimension (surface detail dimension, not inverted, layer zero).
|
static Dimension.Anchor |
NORMAL_DETAIL_CEILING
Convenience constant for the default dimension ceiling (surface detail dimension, inverted, layer zero).
|
static Dimension.Anchor |
NORMAL_MASTER
Convenience constant for the default Master dimension (surface master dimension, not inverted, layer zero).
|
Dimension.Role |
role
The role this anchor plays in the specified game dimension.
|
Constructor and Description |
---|
Anchor(int dim,
Dimension.Role role,
boolean invert,
int id) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(@NotNull java.lang.Object o) |
boolean |
equals(java.lang.Object o) |
static Dimension.Anchor |
fromString(java.lang.String str)
Parse a string previously produced by
toString() into a new Anchor instance. |
java.lang.String |
getDefaultName() |
int |
hashCode() |
java.lang.String |
toString() |
public final int dim
Constants.DIM_NORMAL
,
Constants.DIM_NETHER
and Constants.DIM_END
for predefined values. Note that they don't
correspond to the dimension numbers in Minecraft.public final Dimension.Role role
public final boolean invert
public final int id
public static final Dimension.Anchor NORMAL_DETAIL
public static final Dimension.Anchor NORMAL_MASTER
public static final Dimension.Anchor NETHER_DETAIL
public static final Dimension.Anchor END_DETAIL
public static final Dimension.Anchor NORMAL_DETAIL_CEILING
public static final Dimension.Anchor NETHER_DETAIL_CEILING
public static final Dimension.Anchor END_DETAIL_CEILING
public Anchor(int dim, Dimension.Role role, boolean invert, int id)
public java.lang.String getDefaultName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(@NotNull @NotNull java.lang.Object o)
compareTo
in interface java.lang.Comparable
public static Dimension.Anchor fromString(java.lang.String str)
toString()
into a new Anchor
instance.