public class AdvancedButton
extends net.minecraft.client.gui.GuiButton
| Modifier and Type | Class and Description |
|---|---|
static class |
AdvancedButton.Enum |
| Modifier and Type | Field and Description |
|---|---|
protected GuiOriginsOfDarkness |
gui |
| Constructor and Description |
|---|
AdvancedButton() |
| Modifier and Type | Method and Description |
|---|---|
void |
drawButton(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY) |
InfoSection |
getTarget() |
protected boolean |
isHover(int mouseX,
int mouseY) |
boolean |
isVisible() |
void |
setId(int id) |
void |
update(int x,
int y,
java.lang.String displayName,
InfoSection target,
GuiOriginsOfDarkness gui)
This is called each render tick to update the button to the latest render state.
|
func_146111_b, func_146113_a, func_146115_a, func_154310_c, getButtonWidth, getHoverState, mouseDragged, mousePressed, mouseReleasedprotected GuiOriginsOfDarkness gui
public void setId(int id)
public void update(int x,
int y,
java.lang.String displayName,
InfoSection target,
GuiOriginsOfDarkness gui)
x - The X position.y - The Y position.displayName - The text to display.target - The target section.gui - The gui.public void drawButton(net.minecraft.client.Minecraft minecraft,
int mouseX,
int mouseY)
drawButton in class net.minecraft.client.gui.GuiButtonprotected boolean isHover(int mouseX,
int mouseY)
public boolean isVisible()
public InfoSection getTarget()