public class ColorElement<T extends net.minecraft.client.gui.GuiScreen> extends Element<T>
| Modifier and Type | Field and Description |
|---|---|
int[] |
colors |
| Constructor and Description |
|---|
ColorElement(T gui,
float posX,
float posY,
int width,
int height,
java.util.function.Function<ColorElement<T>,java.lang.Boolean> function) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColor() |
boolean |
mouseClicked(float mouseX,
float mouseY,
int button) |
void |
render(float mouseX,
float mouseY,
float partialTicks) |
drawOutline, drawRectangle, drawString, drawTexturedRectangle, endScissor, getChildren, getColorScheme, getGUI, getHeight, getParent, getPosX, getPosY, getWidth, init, isEnabled, isSelected, isVisible, keyPressed, mouseDragged, mouseReleased, mouseScrolled, setEnabled, setHeight, setPosX, setPosY, setVisible, setWidth, startScissor, update, withColorScheme, withParentpublic ColorElement(T gui, float posX, float posY, int width, int height, java.util.function.Function<ColorElement<T>,java.lang.Boolean> function)
public void render(float mouseX,
float mouseY,
float partialTicks)
public boolean mouseClicked(float mouseX,
float mouseY,
int button)
mouseClicked in class Element<T extends net.minecraft.client.gui.GuiScreen>public int getColor()