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
Direct Known Subclasses:
RecipeAlternativesWidget.CraftingAlternativeButtonWidget, RecipeAlternativesWidget.FurnaceAlternativeButtonWidget
Enclosing class:
RecipeAlternativesWidget

@Environment(CLIENT) private abstract class RecipeAlternativesWidget.AlternativeButtonWidget extends ClickableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget
intermediary net/minecraft/class_508$class_509
official fxt$b
  • Field Details

    • recipeId

      final NetworkRecipeId recipeId
      Mappings:
      Namespace Name Mixin selector
      named recipeId Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;recipeId:Lnet/minecraft/recipe/NetworkRecipeId;
      intermediary field_3114 Lnet/minecraft/class_508$class_509;field_3114:Lnet/minecraft/class_10298;
      official b Lfxt$b;b:Lddk;
    • craftable

      private final boolean craftable
      Mappings:
      Namespace Name Mixin selector
      named craftable Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;craftable:Z
      intermediary field_3115 Lnet/minecraft/class_508$class_509;field_3115:Z
      official c Lfxt$b;c:Z
    • inputSlots

      Mappings:
      Namespace Name Mixin selector
      named inputSlots Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;inputSlots:Ljava/util/List;
      intermediary field_52834 Lnet/minecraft/class_508$class_509;field_52834:Ljava/util/List;
      official d Lfxt$b;d:Ljava/util/List;
  • Constructor Details

    • AlternativeButtonWidget

      public AlternativeButtonWidget(int x, int y, NetworkRecipeId recipeId, boolean craftable, List<RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot> inputSlots)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;<init>(Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;IILnet/minecraft/recipe/NetworkRecipeId;ZLjava/util/List;)V
      intermediary <init> Lnet/minecraft/class_508$class_509;<init>(Lnet/minecraft/class_508;IILnet/minecraft/class_10298;ZLjava/util/List;)V
      official <init> Lfxt$b;<init>(Lfxt;IILddk;ZLjava/util/List;)V
  • Method Details

    • slot

      protected static RecipeAlternativesWidget.AlternativeButtonWidget.InputSlot slot(int x, int y, List<ItemStack> stacks)
      Mappings:
      Namespace Name Mixin selector
      named slot Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;slot(IILjava/util/List;)Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget$InputSlot;
      intermediary method_62040 Lnet/minecraft/class_508$class_509;method_62040(IILjava/util/List;)Lnet/minecraft/class_508$class_509$class_510;
      official a Lfxt$b;a(IILjava/util/List;)Lfxt$b$a;
    • getOverlayTexture

      protected abstract Identifier getOverlayTexture(boolean enabled)
      Mappings:
      Namespace Name Mixin selector
      named getOverlayTexture Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget$AlternativeButtonWidget;getOverlayTexture(Z)Lnet/minecraft/util/Identifier;
      intermediary method_62039 Lnet/minecraft/class_508$class_509;method_62039(Z)Lnet/minecraft/class_2960;
      official b Lfxt$b;b(Z)Lalz;
    • appendClickableNarrations

      public void appendClickableNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendClickableNarrations in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named appendClickableNarrations Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
      intermediary method_47399 Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
      official a Lfoc;a(Lfsc;)V
    • renderWidget

      public void renderWidget(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      renderWidget in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named renderWidget Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
      official b Lfoc;b(Lfnr;IIF)V