Class RecipeGroupButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.ToggleButtonWidget
net.minecraft.client.gui.screen.recipebook.RecipeGroupButtonWidget
@Environment(CLIENT) public class RecipeGroupButtonWidget extends ToggleButtonWidget
- Mappings:
Namespace Name official dyf
intermediary net/minecraft/class_512
named net/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget
-
Field Summary
Fields Modifier and Type Field Description private float
bounce
private RecipeBookGroup
category
Fields inherited from class net.minecraft.client.gui.widget.ToggleButtonWidget
hoverVOffset, pressedUOffset, texture, toggled, u, v
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description RecipeGroupButtonWidget(RecipeBookGroup category)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class net.minecraft.client.gui.widget.ToggleButtonWidget
isToggled, setPos, setTextureUV, setToggled
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onClick, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyPressed, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
category
- Mappings:
Namespace Name Mixin selector official t
Ldyf;t:Ldqr;
intermediary field_3123
Lnet/minecraft/class_512;field_3123:Lnet/minecraft/class_314;
named category
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;category:Lnet/minecraft/client/recipebook/RecipeBookGroup;
-
bounce
private float bounce- Mappings:
Namespace Name Mixin selector official u
Ldyf;u:F
intermediary field_3122
Lnet/minecraft/class_512;field_3122:F
named bounce
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;bounce:F
-
-
Constructor Details
-
RecipeGroupButtonWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldyf;<init>(Ldqr;)V
intermediary <init>
Lnet/minecraft/class_512;<init>(Lnet/minecraft/class_314;)V
named <init>
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;<init>(Lnet/minecraft/client/recipebook/RecipeBookGroup;)V
-
-
Method Details
-
checkForNewRecipes
- Mappings:
Namespace Name Mixin selector official a
Ldyf;a(Ldqk;)V
intermediary method_2622
Lnet/minecraft/class_512;method_2622(Lnet/minecraft/class_310;)V
named checkForNewRecipes
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;checkForNewRecipes(Lnet/minecraft/client/MinecraftClient;)V
-
renderButton
- Overrides:
renderButton
in classToggleButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
renderIcons
- Mappings:
Namespace Name Mixin selector official a
Ldyf;a(Lenf;)V
intermediary method_2621
Lnet/minecraft/class_512;method_2621(Lnet/minecraft/class_918;)V
named renderIcons
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;renderIcons(Lnet/minecraft/client/render/item/ItemRenderer;)V
-
getCategory
- Mappings:
Namespace Name Mixin selector official b
Ldyf;b()Ldqr;
intermediary method_2623
Lnet/minecraft/class_512;method_2623()Lnet/minecraft/class_314;
named getCategory
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;getCategory()Lnet/minecraft/client/recipebook/RecipeBookGroup;
-
hasKnownRecipes
- Mappings:
Namespace Name Mixin selector official a
Ldyf;a(Ldpx;)Z
intermediary method_2624
Lnet/minecraft/class_512;method_2624(Lnet/minecraft/class_299;)Z
named hasKnownRecipes
Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;hasKnownRecipes(Lnet/minecraft/client/recipebook/ClientRecipeBook;)Z
-