public class GuiToggleButton extends GuiBetterButton
| Modifier and Type | Field and Description |
|---|---|
boolean |
active |
BUTTON_TEXTURES, texture| Constructor and Description |
|---|
GuiToggleButton(int id,
int x,
int y,
int width,
IButtonTextureSet texture,
java.lang.String s,
boolean active) |
GuiToggleButton(int id,
int x,
int y,
int width,
java.lang.String s,
boolean active) |
GuiToggleButton(int id,
int x,
int y,
java.lang.String label,
boolean active) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHoverState(boolean mouseOver) |
int |
getTextColor(boolean mouseOver) |
void |
toggle() |
bindButtonTextures, drawButton, getHeight, getToolTip, getWidth, isMouseOver, isMouseOverButton, isToolTipVisible, setToolTipfunc_146111_b, func_146113_a, func_146115_a, func_154310_c, getButtonWidth, mouseDragged, mousePressed, mouseReleasedpublic GuiToggleButton(int id,
int x,
int y,
java.lang.String label,
boolean active)
public GuiToggleButton(int id,
int x,
int y,
int width,
java.lang.String s,
boolean active)
public GuiToggleButton(int id,
int x,
int y,
int width,
IButtonTextureSet texture,
java.lang.String s,
boolean active)
public void toggle()
public int getHoverState(boolean mouseOver)
getHoverState in class net.minecraft.client.gui.GuiButtonpublic int getTextColor(boolean mouseOver)
getTextColor in class GuiBetterButton