public class ActiveImageButton extends ImageButton
Modifier and Type | Field and Description |
---|---|
protected boolean |
active |
protected RGBA |
activeColor |
resource
EMTPY_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, setResource
setPressable, setPressable
keyPressed, onClick
changeFocus, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
protected 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