public class PonderButton extends BoxWidget
| Modifier and Type | Field and Description |
|---|---|
protected LerpedFloat |
flash |
protected net.minecraft.item.ItemStack |
item |
protected net.minecraft.client.settings.KeyBinding |
shortcut |
protected PonderTag |
tag |
animateColors, box, colorAnimation, customBackground, customBorderBot, customBorderTop, gradientColor1, gradientColor2, gradientFactoryelement, fade, fadeModX, fadeModY, paddingX, paddingY, rescaleElement, rescaleSizeX, rescaleSizeY, usesFadeonClick, toolTip, wasHovered, z| Constructor and Description |
|---|
PonderButton(int x,
int y) |
PonderButton(int x,
int y,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeRender(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks) |
void |
dim() |
void |
flash() |
Theme.Key |
getClickTheme() |
Theme.Key |
getDisabledTheme() |
Theme.Key |
getHoverTheme() |
Theme.Key |
getIdleTheme() |
net.minecraft.item.ItemStack |
getItem() |
PonderTag |
getTag() |
void |
renderButton(com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks) |
<T extends PonderButton> |
showing(net.minecraft.item.ItemStack item) |
<T extends ElementWidget> |
showingElement(RenderElement element) |
<T extends PonderButton> |
showingTag(PonderTag tag) |
void |
tick() |
<T extends PonderButton> |
withShortcut(net.minecraft.client.settings.KeyBinding key) |
animateColors, animateGradientFromState, getBox, isMouseOver, onClick, updateColorsFromState, withBorderColors, withBorderColors, withBounds, withCustomBackgrounddisableFade, disableRescale, enableFade, fade, fade, getRenderElement, mapElement, modifyElement, rescaleElement, showing, withPaddingafterRender, atZLevel, clicked, getToolTip, render, runCallback, withCallback, withCallbackchangeFocus, clearFGColor, createNarrationMessage, getFGColor, getHeight, getMessage, getWidth, getYImage, isFocused, isHovered, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineprotected net.minecraft.item.ItemStack item
protected PonderTag tag
protected net.minecraft.client.settings.KeyBinding shortcut
protected LerpedFloat flash
public PonderButton(int x,
int y)
public PonderButton(int x,
int y,
int width,
int height)
public <T extends PonderButton> T withShortcut(net.minecraft.client.settings.KeyBinding key)
public <T extends PonderButton> T showingTag(PonderTag tag)
public <T extends PonderButton> T showing(net.minecraft.item.ItemStack item)
public <T extends ElementWidget> T showingElement(RenderElement element)
showingElement in class ElementWidgetpublic void flash()
public void dim()
protected void beforeRender(@Nonnull
com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks)
beforeRender in class BoxWidgetpublic void renderButton(@Nonnull
com.mojang.blaze3d.matrix.MatrixStack ms,
int mouseX,
int mouseY,
float partialTicks)
renderButton in class BoxWidgetpublic net.minecraft.item.ItemStack getItem()
public PonderTag getTag()
public Theme.Key getDisabledTheme()
getDisabledTheme in class BoxWidgetpublic Theme.Key getIdleTheme()
getIdleTheme in class BoxWidgetpublic Theme.Key getHoverTheme()
getHoverTheme in class BoxWidgetpublic Theme.Key getClickTheme()
getClickTheme in class BoxWidget