@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, v
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
GUI_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, setToggled
changeFocus, 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, setWidth
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
private 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 ToggleButtonWidget
private void renderIcons(ItemRenderer itemRenderer)
public RecipeBookGroup getCategory()
public boolean hasKnownRecipes(ClientRecipeBook recipeBook)