@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, yBACKGROUND_TEXTURE, GUI_ICONS_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 matrixStack,
int int2,
int int3,
float float2) |
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, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, 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 matrixStack, int int2, int int3, float float2)
renderButton in class ToggleButtonWidgetprivate void renderIcons(ItemRenderer itemRenderer)
public RecipeBookGroup getCategory()
public boolean hasKnownRecipes(ClientRecipeBook recipeBook)