Class RecipeAlternativesWidget

java.lang.Object
net.minecraft.client.gui.screen.recipebook.RecipeAlternativesWidget
All Implemented Interfaces:
Drawable, Element, Navigable

@Environment(CLIENT) public class RecipeAlternativesWidget extends Object implements Drawable, Element
Mappings:
Namespace Name
official fbv
intermediary net/minecraft/class_508
named net/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget
  • Field Details

    • OVERLAY_RECIPE_TEXTURE

      private static final Identifier OVERLAY_RECIPE_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official b Lfbv;b:Laew;
      intermediary field_45541 Lnet/minecraft/class_508;field_45541:Lnet/minecraft/class_2960;
      named OVERLAY_RECIPE_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;OVERLAY_RECIPE_TEXTURE:Lnet/minecraft/util/Identifier;
    • FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE

      static final Identifier FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official c Lfbv;c:Laew;
      intermediary field_45542 Lnet/minecraft/class_508;field_45542:Lnet/minecraft/class_2960;
      named FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • FURNACE_OVERLAY_TEXTURE

      static final Identifier FURNACE_OVERLAY_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official d Lfbv;d:Laew;
      intermediary field_45543 Lnet/minecraft/class_508;field_45543:Lnet/minecraft/class_2960;
      named FURNACE_OVERLAY_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
    • CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE

      static final Identifier CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official e Lfbv;e:Laew;
      intermediary field_45544 Lnet/minecraft/class_508;field_45544:Lnet/minecraft/class_2960;
      named CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • CRAFTING_OVERLAY_TEXTURE

      static final Identifier CRAFTING_OVERLAY_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official f Lfbv;f:Laew;
      intermediary field_45545 Lnet/minecraft/class_508;field_45545:Lnet/minecraft/class_2960;
      named CRAFTING_OVERLAY_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_TEXTURE:Lnet/minecraft/util/Identifier;
    • FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE

      static final Identifier FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official g Lfbv;g:Laew;
      intermediary field_45546 Lnet/minecraft/class_508;field_45546:Lnet/minecraft/class_2960;
      named FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • FURNACE_OVERLAY_DISABLED_TEXTURE

      static final Identifier FURNACE_OVERLAY_DISABLED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official h Lfbv;h:Laew;
      intermediary field_45547 Lnet/minecraft/class_508;field_45547:Lnet/minecraft/class_2960;
      named FURNACE_OVERLAY_DISABLED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;FURNACE_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
    • CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE

      static final Identifier CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official i Lfbv;i:Laew;
      intermediary field_45548 Lnet/minecraft/class_508;field_45548:Lnet/minecraft/class_2960;
      named CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;
    • CRAFTING_OVERLAY_DISABLED_TEXTURE

      static final Identifier CRAFTING_OVERLAY_DISABLED_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official j Lfbv;j:Laew;
      intermediary field_45549 Lnet/minecraft/class_508;field_45549:Lnet/minecraft/class_2960;
      named CRAFTING_OVERLAY_DISABLED_TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;CRAFTING_OVERLAY_DISABLED_TEXTURE:Lnet/minecraft/util/Identifier;
    • field_32406

      private static final int field_32406
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Lfbv;k:I
      intermediary field_32406 Lnet/minecraft/class_508;field_32406:I
      named field_32406 Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32406:I
    • field_32407

      private static final int field_32407
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Lfbv;l:I
      intermediary field_32407 Lnet/minecraft/class_508;field_32407:I
      named field_32407 Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_32407:I
    • field_33739

      private static final float field_33739
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Lfbv;m:F
      intermediary field_33739 Lnet/minecraft/class_508;field_33739:F
      named field_33739 Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_33739:F
    • field_42162

      public static final int field_42162
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lfbv;a:I
      intermediary field_42162 Lnet/minecraft/class_508;field_42162:I
      named field_42162 Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;field_42162:I
    • alternativeButtons

      private final List<RecipeAlternativesWidget.AlternativeButtonWidget> alternativeButtons
      Mappings:
      Namespace Name Mixin selector
      official n Lfbv;n:Ljava/util/List;
      intermediary field_3106 Lnet/minecraft/class_508;field_3106:Ljava/util/List;
      named alternativeButtons Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;alternativeButtons:Ljava/util/List;
    • visible

      private boolean visible
      Mappings:
      Namespace Name Mixin selector
      official o Lfbv;o:Z
      intermediary field_3107 Lnet/minecraft/class_508;field_3107:Z
      named visible Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;visible:Z
    • buttonX

      private int buttonX
      Mappings:
      Namespace Name Mixin selector
      official p Lfbv;p:I
      intermediary field_3105 Lnet/minecraft/class_508;field_3105:I
      named buttonX Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonX:I
    • buttonY

      private int buttonY
      Mappings:
      Namespace Name Mixin selector
      official q Lfbv;q:I
      intermediary field_3103 Lnet/minecraft/class_508;field_3103:I
      named buttonY Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;buttonY:I
    • client

      private MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official s Lfbv;s:Leqv;
      intermediary field_3108 Lnet/minecraft/class_508;field_3108:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;client:Lnet/minecraft/client/MinecraftClient;
    • resultCollection

      private RecipeResultCollection resultCollection
      Mappings:
      Namespace Name Mixin selector
      official t Lfbv;t:Lfca;
      intermediary field_3111 Lnet/minecraft/class_508;field_3111:Lnet/minecraft/class_516;
      named resultCollection Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;resultCollection:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
    • lastClickedRecipe

      @Nullable private @Nullable RecipeEntry<?> lastClickedRecipe
      Mappings:
      Namespace Name Mixin selector
      official u Lfbv;u:Lcmk;
      intermediary field_3104 Lnet/minecraft/class_508;field_3104:Lnet/minecraft/class_8786;
      named lastClickedRecipe Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;lastClickedRecipe:Lnet/minecraft/recipe/RecipeEntry;
    • time

      float time
      Mappings:
      Namespace Name Mixin selector
      official v Lfbv;v:F
      intermediary field_3110 Lnet/minecraft/class_508;field_3110:F
      named time Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;time:F
    • furnace

      boolean furnace
      Mappings:
      Namespace Name Mixin selector
      official w Lfbv;w:Z
      intermediary field_3112 Lnet/minecraft/class_508;field_3112:Z
      named furnace Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;furnace:Z
  • Constructor Details

    • RecipeAlternativesWidget

      public RecipeAlternativesWidget()
  • Method Details

    • showAlternativesForResult

      public void showAlternativesForResult(MinecraftClient client, RecipeResultCollection results, int buttonX, int buttonY, int areaCenterX, int areaCenterY, float delta)
      Mappings:
      Namespace Name Mixin selector
      official a Lfbv;a(Leqv;Lfca;IIIIF)V
      intermediary method_2617 Lnet/minecraft/class_508;method_2617(Lnet/minecraft/class_310;Lnet/minecraft/class_516;IIIIF)V
      named showAlternativesForResult Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;showAlternativesForResult(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;IIIIF)V
    • getResults

      public RecipeResultCollection getResults()
      Mappings:
      Namespace Name Mixin selector
      official a Lfbv;a()Lfca;
      intermediary method_2614 Lnet/minecraft/class_508;method_2614()Lnet/minecraft/class_516;
      named getResults Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getResults()Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
    • getLastClickedRecipe

      @Nullable public @Nullable RecipeEntry<?> getLastClickedRecipe()
      Mappings:
      Namespace Name Mixin selector
      official b Lfbv;b()Lcmk;
      intermediary method_2615 Lnet/minecraft/class_508;method_2615()Lnet/minecraft/class_8786;
      named getLastClickedRecipe Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;getLastClickedRecipe()Lnet/minecraft/recipe/RecipeEntry;
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Specified by:
      mouseClicked in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • isMouseOver

      public boolean isMouseOver(double mouseX, double mouseY)
      Checks if the mouse position is within the bound of the element.
      Specified by:
      isMouseOver in interface Element
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      Returns:
      true if the mouse is within the bound of the element, otherwise false
      Mappings:
      Namespace Name Mixin selector
      official a_ Leuk;a_(DD)Z
      intermediary method_25405 Lnet/minecraft/class_364;method_25405(DD)Z
      named isMouseOver Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Mappings:
      Namespace Name Mixin selector
      official a Lets;a(Lesf;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • setVisible

      public void setVisible(boolean visible)
      Mappings:
      Namespace Name Mixin selector
      official b Lfbv;b(Z)V
      intermediary method_2613 Lnet/minecraft/class_508;method_2613(Z)V
      named setVisible Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;setVisible(Z)V
    • isVisible

      public boolean isVisible()
      Mappings:
      Namespace Name Mixin selector
      official d Lfbv;d()Z
      intermediary method_2616 Lnet/minecraft/class_508;method_2616()Z
      named isVisible Lnet/minecraft/client/gui/screen/recipebook/RecipeAlternativesWidget;isVisible()Z
    • setFocused

      public void setFocused(boolean focused)
      Specified by:
      setFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official b_ Leuk;b_(Z)V
      intermediary method_25365 Lnet/minecraft/class_364;method_25365(Z)V
      named setFocused Lnet/minecraft/client/gui/Element;setFocused(Z)V
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface Element
      Mappings:
      Namespace Name Mixin selector
      official aC_ Leuk;aC_()Z
      intermediary method_25370 Lnet/minecraft/class_364;method_25370()Z
      named isFocused Lnet/minecraft/client/gui/Element;isFocused()Z