| Enum Constant and Description |
|---|
BOTTOM_LEFT
The bottom left of the screen.
|
BOTTOM_RIGHT
The bottom right of the screen.
|
MIDDLE
Above the experience bar, usually between the health and hunger bars.
|
TOP_LEFT
The top left of the screen.
|
TOP_RIGHT
The top right of the screen.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId() |
static ConfigOption<Position> |
getOption(int id,
java.util.Collection<Position> allowedValues,
java.util.function.Supplier<Position> getter,
java.util.function.Consumer<Position> setter)
Creates a
ConfigOption that allows to choose between all the allowedValues. |
static ConfigOption<Position> |
getOption(int id,
java.util.function.Supplier<Position> getter,
java.util.function.Consumer<Position> setter)
Creates a
ConfigOption that allows to choose between all of this enum's values. |
java.lang.String |
getText() |
boolean |
isBottom()
Checks if the position is at the bottom of the screen.
|
boolean |
isRight()
Checks if the position is on the right of the screen.
|
static Position |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Position[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Position TOP_LEFT
public static final Position TOP_RIGHT
public static final Position BOTTOM_LEFT
public static final Position BOTTOM_RIGHT
public static final Position MIDDLE
public static Position[] values()
for (Position c : Position.values()) System.out.println(c);
public static Position valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic boolean isRight()
true if the position is on the right of the screenpublic boolean isBottom()
true if the position is at the bottom of the screenpublic static ConfigOption<Position> getOption(int id, java.util.function.Supplier<Position> getter, java.util.function.Consumer<Position> setter)
ConfigOption that allows to choose between all of this enum's values.getter - Gets the default value for the optionsetter - The action to be performed when the value changesgetOption(int, Collection, Supplier, Consumer)public static ConfigOption<Position> getOption(int id, java.util.Collection<Position> allowedValues, java.util.function.Supplier<Position> getter, java.util.function.Consumer<Position> setter)
ConfigOption that allows to choose between all the allowedValues.allowedValues - The values the option will cycle throughgetter - Gets the default value for the optionsetter - The action to be performed when the value changespublic int getId()
public java.lang.String getText()