Class AnimatedResultButton

All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable, Widget

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

    • BACKGROUND_TEXTURE

      private static final Identifier BACKGROUND_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official b Lews;b:Ladd;
      intermediary field_3143 Lnet/minecraft/class_514;field_3143:Lnet/minecraft/class_2960;
      named BACKGROUND_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;BACKGROUND_TEXTURE:Lnet/minecraft/util/Identifier;
    • field_32414

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

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

      public static final int field_32413
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lews;a:I
      intermediary field_32413 Lnet/minecraft/class_514;field_32413:I
      named field_32413 Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;field_32413:I
    • MORE_RECIPES_TEXT

      private static final Text MORE_RECIPES_TEXT
      Mappings:
      Namespace Name Mixin selector
      official e Lews;e:Ltj;
      intermediary field_26595 Lnet/minecraft/class_514;field_26595:Lnet/minecraft/class_2561;
      named MORE_RECIPES_TEXT Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;MORE_RECIPES_TEXT:Lnet/minecraft/text/Text;
    • craftingScreenHandler

      private AbstractRecipeScreenHandler<?> craftingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      official f Lews;f:Lcco;
      intermediary field_3137 Lnet/minecraft/class_514;field_3137:Lnet/minecraft/class_1729;
      named craftingScreenHandler Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;craftingScreenHandler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
    • recipeBook

      private RecipeBook recipeBook
      Mappings:
      Namespace Name Mixin selector
      official k Lews;k:Lamu;
      intermediary field_3138 Lnet/minecraft/class_514;field_3138:Lnet/minecraft/class_3439;
      named recipeBook Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;recipeBook:Lnet/minecraft/recipe/book/RecipeBook;
    • resultCollection

      private RecipeResultCollection resultCollection
      Mappings:
      Namespace Name Mixin selector
      official l Lews;l:Lewt;
      intermediary field_3142 Lnet/minecraft/class_514;field_3142:Lnet/minecraft/class_516;
      named resultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
    • time

      private float time
      Mappings:
      Namespace Name Mixin selector
      official m Lews;m:F
      intermediary field_3140 Lnet/minecraft/class_514;field_3140:F
      named time Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;time:F
    • bounce

      private float bounce
      Mappings:
      Namespace Name Mixin selector
      official n Lews;n:F
      intermediary field_3139 Lnet/minecraft/class_514;field_3139:F
      named bounce Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;bounce:F
    • currentResultIndex

      private int currentResultIndex
      Mappings:
      Namespace Name Mixin selector
      official o Lews;o:I
      intermediary field_3141 Lnet/minecraft/class_514;field_3141:I
      named currentResultIndex Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentResultIndex:I
  • Constructor Details

    • AnimatedResultButton

      public AnimatedResultButton()
  • Method Details

    • showResultCollection

      public void showResultCollection(RecipeResultCollection resultCollection, RecipeBookResults results)
      Mappings:
      Namespace Name Mixin selector
      official a Lews;a(Lewt;Lewq;)V
      intermediary method_2640 Lnet/minecraft/class_514;method_2640(Lnet/minecraft/class_516;Lnet/minecraft/class_513;)V
      named showResultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;showResultCollection(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/client/gui/screen/recipebook/RecipeBookResults;)V
    • getResultCollection

      public RecipeResultCollection getResultCollection()
      Mappings:
      Namespace Name Mixin selector
      official a Lews;a()Lewt;
      intermediary method_2645 Lnet/minecraft/class_514;method_2645()Lnet/minecraft/class_516;
      named getResultCollection Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResultCollection()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
    • renderButton

      public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      renderButton in class ClickableWidget
      Mappings:
      Namespace Name Mixin selector
      official b Lenz;b(Lehe;IIF)V
      intermediary method_48579 Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
      named renderButton Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
    • getResults

      private List<Recipe<?>> getResults()
      Mappings:
      Namespace Name Mixin selector
      official f Lews;f()Ljava/util/List;
      intermediary method_2639 Lnet/minecraft/class_514;method_2639()Ljava/util/List;
      named getResults Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getResults()Ljava/util/List;
    • hasResults

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

      public Recipe<?> currentRecipe()
      Mappings:
      Namespace Name Mixin selector
      official e Lews;e()Lciy;
      intermediary method_2643 Lnet/minecraft/class_514;method_2643()Lnet/minecraft/class_1860;
      named currentRecipe Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;currentRecipe()Lnet/minecraft/recipe/Recipe;
    • getTooltip

      public List<Text> getTooltip(Screen screen)
      Mappings:
      Namespace Name Mixin selector
      official a Lews;a(Letd;)Ljava/util/List;
      intermediary method_2644 Lnet/minecraft/class_514;method_2644(Lnet/minecraft/class_437;)Ljava/util/List;
      named getTooltip Lnet/minecraft/client/gui/screen/recipebook/AnimatedResultButton;getTooltip(Lnet/minecraft/client/gui/screen/Screen;)Ljava/util/List;
    • appendClickableNarrations

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

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

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