Class RecipeAlternativesWidget.AlternativeButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget.AlternativeButtonWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget,RecipeGridAligner<Ingredient>
- Direct Known Subclasses:
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget
- Enclosing class:
RecipeAlternativesWidget
@Environment(CLIENT)
private class RecipeAlternativesWidget.AlternativeButtonWidget
extends ClickableWidget
implements RecipeGridAligner<Ingredient>
- Mappings:
Namespace Name intermediary net/minecraft/class_508$class_509official exq$anamed net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean(package private) final Recipe<?>protected final List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot>Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptAlignedInput(Iterator<Ingredient> inputs, int slot, int amount, int gridX, int gridY) protected voidalignRecipe(Recipe<?> recipe) voidvoidrenderButton(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.recipe.RecipeGridAligner
alignRecipeToGridMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
recipe
- Mappings:
Namespace Name Mixin selector intermediary field_3114Lnet/minecraft/class_508$class_509;field_3114:Lnet/minecraft/class_1860;official cLexq$a;c:Lcja;named recipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;recipe:Lnet/minecraft/recipe/Recipe;
-
craftable
private final boolean craftable- Mappings:
Namespace Name Mixin selector intermediary field_3115Lnet/minecraft/class_508$class_509;field_3115:Zofficial dLexq$a;d:Znamed craftableLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;craftable:Z
-
slots
- Mappings:
Namespace Name Mixin selector intermediary field_3116Lnet/minecraft/class_508$class_509;field_3116:Ljava/util/List;official aLexq$a;a:Ljava/util/List;named slotsLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;slots:Ljava/util/List;
-
-
Constructor Details
-
AlternativeButtonWidget
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_508$class_509;<init>(Lnet/minecraft/class_508;IILnet/minecraft/class_1860;Z)Vofficial <init>Lexq$a;<init>(Lexq;IILcja;Z)Vnamed <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 intermediary method_2619Lnet/minecraft/class_508$class_509;method_2619(Lnet/minecraft/class_1860;)Vofficial aLexq$a;a(Lcja;)Vnamed alignRecipeLnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;alignRecipe(Lnet/minecraft/recipe/Recipe;)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLeox;a(Lesg;)Vnamed appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-
acceptAlignedInput
public void acceptAlignedInput(Iterator<Ingredient> inputs, int slot, int amount, int gridX, int gridY) - Specified by:
acceptAlignedInputin interfaceRecipeGridAligner<Ingredient>- Mappings:
Namespace Name Mixin selector intermediary method_12815Lnet/minecraft/class_2952;method_12815(Ljava/util/Iterator;IIII)Vofficial aLacf;a(Ljava/util/Iterator;IIII)Vnamed acceptAlignedInputLnet/minecraft/recipe/RecipeGridAligner;acceptAlignedInput(Ljava/util/Iterator;IIII)V
-
renderButton
- Specified by:
renderButtonin classClickableWidget- Mappings:
Namespace Name Mixin selector intermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial bLeox;b(Leop;IIF)Vnamed renderButtonLnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-