public class ColorElement<T extends IElementGUI> extends Element<T>
| Modifier and Type | Field and Description |
|---|---|
static int[] |
COLORS |
| Constructor and Description |
|---|
ColorElement(T gui,
float posX,
float posY,
int width,
int height,
IIntProperty selectedColor) |
ColorElement(T gui,
float posX,
float posY,
int width,
int height,
int color) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColor() |
boolean |
mouseClicked(float mouseX,
float mouseY,
int button) |
void |
render(float mouseX,
float mouseY,
float partialTicks) |
dispose, drawOutline, drawOutline, drawRectangle, drawRectangle, drawTexturedRectangle, drawTexturedRectangle, endScissor, getChildren, getColorScheme, getHeight, getParent, getPosX, getPosY, getWidth, init, isEnabled, isSelected, isSelected, isVisible, keyPressed, mouseDragged, mouseReleased, mouseScrolled, renderChildren, setEnabled, setHeight, setPosX, setPosY, setVisible, setWidth, startScissor, update, withColorScheme, withParentpublic ColorElement(T gui, float posX, float posY, int width, int height, int color)
public ColorElement(T gui, float posX, float posY, int width, int height, IIntProperty selectedColor)
public void render(float mouseX,
float mouseY,
float partialTicks)
render in class Element<T extends IElementGUI>public boolean mouseClicked(float mouseX,
float mouseY,
int button)
mouseClicked in class Element<T extends IElementGUI>public int getColor()