public class ActiveButton extends UButton
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected RGBA |
activeColor |
EMTPY_PRESSABLE| Constructor and Description |
|---|
ActiveButton(int x,
int y,
int width,
int height,
java.lang.String displayString,
int activeColor) |
ActiveButton(int x,
int y,
int width,
int height,
java.lang.String displayString,
int activeColor,
net.minecraft.client.gui.widget.button.Button.IPressable pressable) |
| Modifier and Type | Method and Description |
|---|---|
RGBA |
getActiveColorRGBA() |
boolean |
isActive() |
void |
renderButton(int mouseX,
int mouseY,
float partial) |
void |
setActive(boolean active) |
void |
setActiveColorRGBA(RGBA activeColor) |
setPressable, setPressablekeyPressed, onClickchangeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fillGradient, hLine, innerBlit, vLineprotected boolean active
protected RGBA activeColor
public ActiveButton(int x,
int y,
int width,
int height,
java.lang.String displayString,
int activeColor)
public ActiveButton(int x,
int y,
int width,
int height,
java.lang.String displayString,
int activeColor,
net.minecraft.client.gui.widget.button.Button.IPressable pressable)
public RGBA getActiveColorRGBA()
public void setActiveColorRGBA(RGBA activeColor)
public boolean isActive()
public void setActive(boolean active)
public void renderButton(int mouseX,
int mouseY,
float partial)
renderButton in class UButton