public class ActiveImageButton extends ImageButton
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected RGBA |
activeColor |
resourceEMTPY_PRESSABLE| Constructor and Description |
|---|
ActiveImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
int activeColor) |
ActiveImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
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) |
getResource, resetColor, setResourcesetPressable, 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 ActiveImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
int activeColor)
public ActiveImageButton(int x,
int y,
int width,
int height,
net.minecraft.util.ResourceLocation resource,
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 ImageButton