@Environment(value=CLIENT) public class RecipeGroupButtonWidget extends ToggleButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private float |
bounce |
private RecipeBookGroup |
category |
hoverVOffset, pressedUOffset, texture, toggled, u, vactive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
RecipeGroupButtonWidget(RecipeBookGroup category) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkForNewRecipes(MinecraftClient client) |
RecipeBookGroup |
getCategory() |
boolean |
hasKnownRecipes(ClientRecipeBook recipeBook) |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
private void |
renderIcons(ItemRenderer itemRenderer) |
isToggled, setPos, setTextureUV, setToggledchangeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyPressed, keyReleased, mouseMoved, mouseScrolledprivate final RecipeBookGroup category
private float bounce
public RecipeGroupButtonWidget(RecipeBookGroup category)
public void checkForNewRecipes(MinecraftClient client)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class ToggleButtonWidgetprivate void renderIcons(ItemRenderer itemRenderer)
public RecipeBookGroup getCategory()
public boolean hasKnownRecipes(ClientRecipeBook recipeBook)