Class RecipeAlternativesWidget.AlternativeButtonWidget

java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget.AlternativeButtonWidget
All Implemented Interfaces:
Drawable, Element, Narratable, Selectable, RecipeGridAligner<Ingredient>
Direct Known Subclasses:
RecipeAlternativesWidget.FurnaceAlternativeButtonWidget
Enclosing class:
RecipeAlternativesWidget

@Environment(CLIENT) private class RecipeAlternativesWidget.AlternativeButtonWidget extends ClickableWidget implements RecipeGridAligner<Ingredient>
Mappings:
Namespace Name
official enl$a
intermediary net/minecraft/class_508$class_509
named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget
  • Field Details

    • recipe

      final Recipe<?> recipe
      Mappings:
      Namespace Name Mixin selector
      official c Lenl$a;c:Lccs;
      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 Lenl$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 Lenl$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

      public AlternativeButtonWidget(int x, int y, Recipe<?> recipe, boolean craftable)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lenl$a;<init>(Lenl;IILccs;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

      protected void alignRecipe(Recipe<?> recipe)
      Mappings:
      Namespace Name Mixin selector
      official a Lenl$a;a(Lccs;)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
    • appendNarrations

      public void appendNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendNarrations in interface Narratable
      Mappings:
      Namespace Name Mixin selector
      official a Leiu;a(Leit;)V
      intermediary method_37020 Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
      named appendNarrations Lnet/minecraft/client/gui/Narratable;appendNarrations(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:
      acceptAlignedInput in interface RecipeGridAligner<Ingredient>
      Mappings:
      Namespace Name Mixin selector
      official a Lzy;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

      public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Overrides:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Legp;b(Ldzs;IIF)V
      intermediary method_25359 Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V