@Environment(value=CLIENT) enum AdvancementTabType extends Enum<AdvancementTabType>
Modifier and Type | Field and Description |
---|---|
private int |
height |
private int |
tabCount |
private int |
u |
private int |
v |
private int |
width |
Modifier and Type | Method and Description |
---|---|
void |
drawBackground(MatrixStack matrixStack,
DrawableHelper drawableHelper,
int int2,
int int3,
boolean bool,
int int4) |
void |
drawIcon(int x,
int y,
int index,
ItemRenderer itemRenderer,
ItemStack icon) |
int |
getTabCount() |
int |
getTabX(int index) |
int |
getTabY(int index) |
boolean |
isClickOnTab(int screenX,
int screenY,
int index,
double mouseX,
double mouseY) |
static AdvancementTabType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AdvancementTabType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AdvancementTabType ABOVE
public static final AdvancementTabType BELOW
public static final AdvancementTabType LEFT
public static final AdvancementTabType RIGHT
private final int u
private final int v
private final int width
private final int height
private final int tabCount
public static AdvancementTabType[] values()
for (AdvancementTabType c : AdvancementTabType.values()) System.out.println(c);
public static AdvancementTabType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getTabCount()
public void drawBackground(MatrixStack matrixStack, DrawableHelper drawableHelper, int int2, int int3, boolean bool, int int4)
public void drawIcon(int x, int y, int index, ItemRenderer itemRenderer, ItemStack icon)
public int getTabX(int index)
public int getTabY(int index)
public boolean isClickOnTab(int screenX, int screenY, int index, double mouseX, double mouseY)