Class AnimatedResultButton

java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.screen.recipebook.AnimatedResultButton
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

@Environment(CLIENT) public class AnimatedResultButton extends ClickableWidget
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/recipebook/AnimatedResultButton
intermediary net/minecraft/class_514
official fxx
  • Field Details

    • SLOT_MANY_CRAFTABLE_TEXTURE

      private static final Identifier SLOT_MANY_CRAFTABLE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_MANY_CRAFTABLE_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;SLOT_MANY_CRAFTABLE_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45555 Lnet/minecraft/class_514;field_45555:Lnet/minecraft/class_2960;
      official a Lfxx;a:Lalz;
    • SLOT_CRAFTABLE_TEXTURE

      private static final Identifier SLOT_CRAFTABLE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_CRAFTABLE_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;SLOT_CRAFTABLE_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45556 Lnet/minecraft/class_514;field_45556:Lnet/minecraft/class_2960;
      official b Lfxx;b:Lalz;
    • SLOT_MANY_UNCRAFTABLE_TEXTURE

      private static final Identifier SLOT_MANY_UNCRAFTABLE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_MANY_UNCRAFTABLE_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;SLOT_MANY_UNCRAFTABLE_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45557 Lnet/minecraft/class_514;field_45557:Lnet/minecraft/class_2960;
      official c Lfxx;c:Lalz;
    • SLOT_UNCRAFTABLE_TEXTURE

      private static final Identifier SLOT_UNCRAFTABLE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_UNCRAFTABLE_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;SLOT_UNCRAFTABLE_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45558 Lnet/minecraft/class_514;field_45558:Lnet/minecraft/class_2960;
      official d Lfxx;d:Lalz;
    • field_32414

      private static final float field_32414
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32414 Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;field_32414:F
      intermediary field_32414 Lnet/minecraft/class_514;field_32414:F
      official e Lfxx;e:F
    • field_32415

      private static final int field_32415
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32415 Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;field_32415:I
      intermediary field_32415 Lnet/minecraft/class_514;field_32415:I
      official f Lfxx;f:I
    • MORE_RECIPES_TEXT

      private static final Text MORE_RECIPES_TEXT
      Mappings:
      Namespace Name Mixin selector
      named MORE_RECIPES_TEXT Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;MORE_RECIPES_TEXT:Lnet/minecraft/text/Text;
      intermediary field_26595 Lnet/minecraft/class_514;field_26595:Lnet/minecraft/class_2561;
      official m Lfxx;m:Lxv;
    • resultCollection

      private RecipeResultCollection resultCollection
      Mappings:
      Namespace Name Mixin selector
      named resultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
      intermediary field_3142 Lnet/minecraft/class_514;field_3142:Lnet/minecraft/class_516;
      official n Lfxx;n:Lfxy;
    • results

      Mappings:
      Namespace Name Mixin selector
      named results Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;results:Ljava/util/List;
      intermediary field_54834 Lnet/minecraft/class_514;field_54834:Ljava/util/List;
      official o Lfxx;o:Ljava/util/List;
    • currentIndexProvider

      private final CurrentIndexProvider currentIndexProvider
      Mappings:
      Namespace Name Mixin selector
      named currentIndexProvider Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentIndexProvider:Lnet/minecraft/client/gui/screen/recipebook/CurrentIndexProvider;
      intermediary field_52846 Lnet/minecraft/class_514;field_52846:Lnet/minecraft/class_9938;
      official p Lfxx;p:Lfyb;
    • bounce

      private float bounce
      Mappings:
      Namespace Name Mixin selector
      named bounce Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;bounce:F
      intermediary field_3139 Lnet/minecraft/class_514;field_3139:F
      official q Lfxx;q:F
  • Constructor Details

    • AnimatedResultButton

      public AnimatedResultButton(CurrentIndexProvider currentIndexProvider)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;<init>(Lnet/minecraft/client/gui/screen/recipebook/CurrentIndexProvider;)V
      intermediary <init> Lnet/minecraft/class_514;<init>(Lnet/minecraft/class_9938;)V
      official <init> Lfxx;<init>(Lfyb;)V
  • Method Details

    • showResultCollection

      public void showResultCollection(RecipeResultCollection resultCollection, boolean filteringCraftable, RecipeBookResults results, ContextParameterMap context)
      Mappings:
      Namespace Name Mixin selector
      named showResultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;showResultCollection(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;ZLnet/minecraft/client/gui/screen/recipebook/RecipeBookResults;Lnet/minecraft/util/context/ContextParameterMap;)V
      intermediary method_2640 Lnet/minecraft/class_514;method_2640(Lnet/minecraft/class_516;ZLnet/minecraft/class_513;Lnet/minecraft/class_10352;)V
      official a Lfxx;a(Lfxy;ZLfxv;Lbbp;)V
    • getResultCollection

      public RecipeResultCollection getResultCollection()
      Mappings:
      Namespace Name Mixin selector
      named getResultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResultCollection()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
      intermediary method_2645 Lnet/minecraft/class_514;method_2645()Lnet/minecraft/class_516;
      official a Lfxx;a()Lfxy;
    • 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
    • hasMultipleResults

      private boolean hasMultipleResults()
      Mappings:
      Namespace Name Mixin selector
      named hasMultipleResults Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;hasMultipleResults()Z
      intermediary method_62048 Lnet/minecraft/class_514;method_62048()Z
      official g Lfxx;g()Z
    • hasSingleResult

      public boolean hasSingleResult()
      Mappings:
      Namespace Name Mixin selector
      named hasSingleResult Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;hasSingleResult()Z
      intermediary method_2642 Lnet/minecraft/class_514;method_2642()Z
      official b Lfxx;b()Z
    • getCurrentId

      public NetworkRecipeId getCurrentId()
      Mappings:
      Namespace Name Mixin selector
      named getCurrentId Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getCurrentId()Lnet/minecraft/recipe/NetworkRecipeId;
      intermediary method_64881 Lnet/minecraft/class_514;method_64881()Lnet/minecraft/class_10298;
      official c Lfxx;c()Lddk;
    • getDisplayStack

      public ItemStack getDisplayStack()
      Mappings:
      Namespace Name Mixin selector
      named getDisplayStack Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getDisplayStack()Lnet/minecraft/item/ItemStack;
      intermediary method_64882 Lnet/minecraft/class_514;method_64882()Lnet/minecraft/class_1799;
      official e Lfxx;e()Lcxo;
    • getTooltip

      public List<Text> getTooltip(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getTooltip Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getTooltip(Lnet/minecraft/item/ItemStack;)Ljava/util/List;
      intermediary method_2644 Lnet/minecraft/class_514;method_2644(Lnet/minecraft/class_1799;)Ljava/util/List;
      official a Lfxx;a(Lcxo;)Ljava/util/List;
    • 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
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Widget
      Overrides:
      getWidth in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/gui/widget/Widget;getWidth()I
      intermediary method_25368 Lnet/minecraft/class_8021;method_25368()I
      official y Lfrv;y()I
    • isValidClickButton

      protected boolean isValidClickButton(int button)
      Overrides:
      isValidClickButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      named isValidClickButton Lnet/minecraft/client/gui/widget/ClickableWidget;isValidClickButton(I)Z
      intermediary method_25351 Lnet/minecraft/class_339;method_25351(I)Z
      official h Lfoc;h(I)Z