Class RecipeAlternativesWidget.AlternativeButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget.AlternativeButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,RecipeGridAligner<Ingredient>
- Direct Known Subclasses:
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget
- Enclosing class:
- RecipeAlternativesWidget
@Environment(CLIENT) class RecipeAlternativesWidget.AlternativeButtonWidget extends AbstractButtonWidget implements RecipeGridAligner<Ingredient>
- Mappings:
Namespace Name official dyc$a
intermediary net/minecraft/class_508$class_509
named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot
-
Field Summary
Fields Modifier and Type Field Description private boolean
craftable
private Recipe<?>
recipe
protected List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot>
slots
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 AlternativeButtonWidget(int x, int y, Recipe<?> recipe, boolean craftable)
-
Method Summary
Modifier and Type Method Description void
acceptAlignedInput(Iterator<Ingredient> inputs, int slot, int amount, int gridX, int gridY)
protected void
alignRecipe(Recipe<?> recipe)
void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
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
Methods inherited from interface net.minecraft.recipe.RecipeGridAligner
alignRecipeToGrid
-
Field Details
-
recipe
- Mappings:
Namespace Name Mixin selector official c
Ldyc$a;c:Lbqn;
intermediary field_3114
Lnet/minecraft/class_508$class_509;field_3114:Lnet/minecraft/class_1860;
named recipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;recipe:Lnet/minecraft/recipe/Recipe;
-
craftable
private final boolean craftable- Mappings:
Namespace Name Mixin selector official d
Ldyc$a;d:Z
intermediary field_3115
Lnet/minecraft/class_508$class_509;field_3115:Z
named craftable
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;craftable:Z
-
slots
- Mappings:
Namespace Name Mixin selector official a
Ldyc$a;a:Ljava/util/List;
intermediary field_3116
Lnet/minecraft/class_508$class_509;field_3116:Ljava/util/List;
named slots
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;slots:Ljava/util/List;
-
-
Constructor Details
-
AlternativeButtonWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldyc$a;<init>(Ldyc;IILbqn;Z)V
intermediary <init>
Lnet/minecraft/class_508$class_509;<init>(Lnet/minecraft/class_508;IILnet/minecraft/class_1860;Z)V
named <init>
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;<init>(Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;IILnet/minecraft/recipe/Recipe;Z)V
-
-
Method Details
-
alignRecipe
- Mappings:
Namespace Name Mixin selector official a
Ldyc$a;a(Lbqn;)V
intermediary method_2619
Lnet/minecraft/class_508$class_509;method_2619(Lnet/minecraft/class_1860;)V
named alignRecipe
Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;alignRecipe(Lnet/minecraft/recipe/Recipe;)V
-
acceptAlignedInput
public void acceptAlignedInput(Iterator<Ingredient> inputs, int slot, int amount, int gridX, int gridY)- Specified by:
acceptAlignedInput
in interfaceRecipeGridAligner<Ingredient>
- Mappings:
Namespace Name Mixin selector official a
Lvr;a(Ljava/util/Iterator;IIII)V
intermediary method_12815
Lnet/minecraft/class_2952;method_12815(Ljava/util/Iterator;IIII)V
named acceptAlignedInput
Lnet/minecraft/recipe/RecipeGridAligner;acceptAlignedInput(Ljava/util/Iterator;IIII)V
-
renderButton
- Overrides:
renderButton
in classAbstractButtonWidget
- 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
-