public enum GuiElementAlignment extends java.lang.Enum<GuiElementAlignment>
IGuiElement defines the position of the element relative to the position of its parent.| Enum Constant and Description |
|---|
BOTTOM_CENTER |
BOTTOM_LEFT |
BOTTOM_RIGHT |
MIDDLE_CENTER |
MIDDLE_LEFT |
MIDDLE_RIGHT |
TOP_CENTER |
TOP_LEFT |
TOP_RIGHT |
| Modifier and Type | Method and Description |
|---|---|
float |
getXOffset() |
float |
getYOffset() |
static GuiElementAlignment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GuiElementAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GuiElementAlignment TOP_LEFT
public static final GuiElementAlignment TOP_CENTER
public static final GuiElementAlignment TOP_RIGHT
public static final GuiElementAlignment MIDDLE_LEFT
public static final GuiElementAlignment MIDDLE_CENTER
public static final GuiElementAlignment MIDDLE_RIGHT
public static final GuiElementAlignment BOTTOM_LEFT
public static final GuiElementAlignment BOTTOM_CENTER
public static final GuiElementAlignment BOTTOM_RIGHT
public static GuiElementAlignment[] values()
for (GuiElementAlignment c : GuiElementAlignment.values()) System.out.println(c);
public static GuiElementAlignment 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 float getXOffset()
public float getYOffset()