Class RecipeBookWidget<T extends AbstractRecipeScreenHandler>

java.lang.Object
net.minecraft.client.gui.screen.recipebook.RecipeBookWidget<T>
All Implemented Interfaces:
Drawable, Element, Narratable, Navigable, Selectable
Direct Known Subclasses:
AbstractCraftingRecipeBookWidget, AbstractFurnaceRecipeBookWidget

@Environment(CLIENT) public abstract class RecipeBookWidget<T extends AbstractRecipeScreenHandler> extends Object implements Drawable, Element, Selectable
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/recipebook/RecipeBookWidget
intermediary net/minecraft/class_507
official fxu
  • Field Details

    • BUTTON_TEXTURES

      public static final ButtonTextures BUTTON_TEXTURES
      Mappings:
      Namespace Name Mixin selector
      named BUTTON_TEXTURES Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;BUTTON_TEXTURES:Lnet/minecraft/client/gui/screen/ButtonTextures;
      intermediary field_45550 Lnet/minecraft/class_507;field_45550:Lnet/minecraft/class_8666;
      official a Lfxu;a:Lfps;
    • TEXTURE

      protected static final Identifier TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_3097 Lnet/minecraft/class_507;field_3097:Lnet/minecraft/class_2960;
      official b Lfxu;b:Lalz;
    • field_52839

      private static final int field_52839
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52839 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_52839:I
      intermediary field_52839 Lnet/minecraft/class_507;field_52839:I
      official h Lfxu;h:I
    • field_52840

      private static final int field_52840
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52840 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_52840:I
      intermediary field_52840 Lnet/minecraft/class_507;field_52840:I
      official i Lfxu;i:I
    • SEARCH_HINT_TEXT

      private static final Text SEARCH_HINT_TEXT
      Mappings:
      Namespace Name Mixin selector
      named SEARCH_HINT_TEXT Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;SEARCH_HINT_TEXT:Lnet/minecraft/text/Text;
      intermediary field_25711 Lnet/minecraft/class_507;field_25711:Lnet/minecraft/class_2561;
      official j Lfxu;j:Lxv;
    • field_32408

      public static final int field_32408
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32408 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_32408:I
      intermediary field_32408 Lnet/minecraft/class_507;field_32408:I
      official c Lfxu;c:I
    • field_32409

      public static final int field_32409
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32409 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_32409:I
      intermediary field_32409 Lnet/minecraft/class_507;field_32409:I
      official d Lfxu;d:I
    • field_32410

      private static final int field_32410
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32410 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_32410:I
      intermediary field_32410 Lnet/minecraft/class_507;field_32410:I
      official k Lfxu;k:I
    • field_54389

      private static final int field_54389
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_54389 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_54389:I
      intermediary field_54389 Lnet/minecraft/class_507;field_54389:I
      official l Lfxu;l:I
    • TOGGLE_ALL_RECIPES_TEXT

      private static final Text TOGGLE_ALL_RECIPES_TEXT
      Mappings:
      Namespace Name Mixin selector
      named TOGGLE_ALL_RECIPES_TEXT Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;TOGGLE_ALL_RECIPES_TEXT:Lnet/minecraft/text/Text;
      intermediary field_26594 Lnet/minecraft/class_507;field_26594:Lnet/minecraft/class_2561;
      official m Lfxu;m:Lxv;
    • field_52841

      private static final int field_52841
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52841 Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;field_52841:I
      intermediary field_52841 Lnet/minecraft/class_507;field_52841:I
      official n Lfxu;n:I
    • leftOffset

      private int leftOffset
      Mappings:
      Namespace Name Mixin selector
      named leftOffset Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;leftOffset:I
      intermediary field_3102 Lnet/minecraft/class_507;field_3102:I
      official o Lfxu;o:I
    • parentWidth

      private int parentWidth
      Mappings:
      Namespace Name Mixin selector
      named parentWidth Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;parentWidth:I
      intermediary field_3101 Lnet/minecraft/class_507;field_3101:I
      official p Lfxu;p:I
    • parentHeight

      private int parentHeight
      Mappings:
      Namespace Name Mixin selector
      named parentHeight Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;parentHeight:I
      intermediary field_3100 Lnet/minecraft/class_507;field_3100:I
      official q Lfxu;q:I
    • displayTime

      private float displayTime
      Mappings:
      Namespace Name Mixin selector
      named displayTime Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;displayTime:F
      intermediary field_52842 Lnet/minecraft/class_507;field_52842:F
      official r Lfxu;r:F
    • selectedRecipeId

      @Nullable private @Nullable NetworkRecipeId selectedRecipeId
      Mappings:
      Namespace Name Mixin selector
      named selectedRecipeId Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;selectedRecipeId:Lnet/minecraft/recipe/NetworkRecipeId;
      intermediary field_54830 Lnet/minecraft/class_507;field_54830:Lnet/minecraft/class_10298;
      official s Lfxu;s:Lddk;
    • ghostRecipe

      private final GhostRecipe ghostRecipe
      Mappings:
      Namespace Name Mixin selector
      named ghostRecipe Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;ghostRecipe:Lnet/minecraft/client/gui/screen/recipebook/GhostRecipe;
      intermediary field_52843 Lnet/minecraft/class_507;field_52843:Lnet/minecraft/class_9934;
      official u Lfxu;u:Lfxs;
    • tabButtons

      private final List<RecipeGroupButtonWidget> tabButtons
      Mappings:
      Namespace Name Mixin selector
      named tabButtons Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;tabButtons:Ljava/util/List;
      intermediary field_3094 Lnet/minecraft/class_507;field_3094:Ljava/util/List;
      official v Lfxu;v:Ljava/util/List;
    • currentTab

      Mappings:
      Namespace Name Mixin selector
      named currentTab Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;currentTab:Lnet/minecraft/client/gui/screen/recipebook/RecipeGroupButtonWidget;
      intermediary field_3098 Lnet/minecraft/class_507;field_3098:Lnet/minecraft/class_512;
      official w Lfxu;w:Lfxw;
    • toggleCraftableButton

      protected ToggleButtonWidget toggleCraftableButton
      Mappings:
      Namespace Name Mixin selector
      named toggleCraftableButton Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;toggleCraftableButton:Lnet/minecraft/client/gui/widget/ToggleButtonWidget;
      intermediary field_3088 Lnet/minecraft/class_507;field_3088:Lnet/minecraft/class_361;
      official e Lfxu;e:Lfpl;
    • craftingScreenHandler

      protected final T extends AbstractRecipeScreenHandler craftingScreenHandler
      Mappings:
      Namespace Name Mixin selector
      named craftingScreenHandler Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;craftingScreenHandler:Lnet/minecraft/screen/AbstractRecipeScreenHandler;
      intermediary field_3095 Lnet/minecraft/class_507;field_3095:Lnet/minecraft/class_1729;
      official f Lfxu;f:Lcuq;
    • client

      protected MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      named client Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;client:Lnet/minecraft/client/MinecraftClient;
      intermediary field_3091 Lnet/minecraft/class_507;field_3091:Lnet/minecraft/class_310;
      official g Lfxu;g:Lfmf;
    • searchField

      @Nullable private @Nullable TextFieldWidget searchField
      Mappings:
      Namespace Name Mixin selector
      named searchField Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;searchField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_3089 Lnet/minecraft/class_507;field_3089:Lnet/minecraft/class_342;
      official x Lfxu;x:Lfon;
    • searchText

      private String searchText
      Mappings:
      Namespace Name Mixin selector
      named searchText Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;searchText:Ljava/lang/String;
      intermediary field_3099 Lnet/minecraft/class_507;field_3099:Ljava/lang/String;
      official y Lfxu;y:Ljava/lang/String;
    • tabs

      private final List<RecipeBookWidget.Tab> tabs
      Mappings:
      Namespace Name Mixin selector
      named tabs Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;tabs:Ljava/util/List;
      intermediary field_54831 Lnet/minecraft/class_507;field_54831:Ljava/util/List;
      official z Lfxu;z:Ljava/util/List;
    • recipeBook

      private ClientRecipeBook recipeBook
      Mappings:
      Namespace Name Mixin selector
      named recipeBook Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;recipeBook:Lnet/minecraft/client/recipebook/ClientRecipeBook;
      intermediary field_3096 Lnet/minecraft/class_507;field_3096:Lnet/minecraft/class_299;
      official A Lfxu;A:Lflq;
    • recipesArea

      private final RecipeBookResults recipesArea
      Mappings:
      Namespace Name Mixin selector
      named recipesArea Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;recipesArea:Lnet/minecraft/client/gui/screen/recipebook/RecipeBookResults;
      intermediary field_3086 Lnet/minecraft/class_507;field_3086:Lnet/minecraft/class_513;
      official B Lfxu;B:Lfxv;
    • selectedRecipe

      @Nullable private @Nullable NetworkRecipeId selectedRecipe
      Mappings:
      Namespace Name Mixin selector
      named selectedRecipe Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;selectedRecipe:Lnet/minecraft/recipe/NetworkRecipeId;
      intermediary field_53832 Lnet/minecraft/class_507;field_53832:Lnet/minecraft/class_10298;
      official C Lfxu;C:Lddk;
    • selectedRecipeResults

      @Nullable private @Nullable RecipeResultCollection selectedRecipeResults
      Mappings:
      Namespace Name Mixin selector
      named selectedRecipeResults Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;selectedRecipeResults:Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;
      intermediary field_53833 Lnet/minecraft/class_507;field_53833:Lnet/minecraft/class_516;
      official D Lfxu;D:Lfxy;
    • recipeFinder

      private final RecipeFinder recipeFinder
      Mappings:
      Namespace Name Mixin selector
      named recipeFinder Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;recipeFinder:Lnet/minecraft/recipe/RecipeFinder;
      intermediary field_3090 Lnet/minecraft/class_507;field_3090:Lnet/minecraft/class_9875;
      official E Lfxu;E:Lcqb;
    • cachedInvChangeCount

      private int cachedInvChangeCount
      Mappings:
      Namespace Name Mixin selector
      named cachedInvChangeCount Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;cachedInvChangeCount:I
      intermediary field_3093 Lnet/minecraft/class_507;field_3093:I
      official F Lfxu;F:I
    • searching

      private boolean searching
      Mappings:
      Namespace Name Mixin selector
      named searching Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;searching:Z
      intermediary field_3087 Lnet/minecraft/class_507;field_3087:Z
      official G Lfxu;G:Z
    • open

      private boolean open
      Mappings:
      Namespace Name Mixin selector
      named open Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;open:Z
      intermediary field_33679 Lnet/minecraft/class_507;field_33679:Z
      official H Lfxu;H:Z
    • narrow

      private boolean narrow
      Mappings:
      Namespace Name Mixin selector
      named narrow Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;narrow:Z
      intermediary field_34001 Lnet/minecraft/class_507;field_34001:Z
      official I Lfxu;I:Z
    • searchFieldRect

      @Nullable private @Nullable ScreenRect searchFieldRect
      Mappings:
      Namespace Name Mixin selector
      named searchFieldRect Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;searchFieldRect:Lnet/minecraft/client/gui/ScreenRect;
      intermediary field_54388 Lnet/minecraft/class_507;field_54388:Lnet/minecraft/class_8030;
      official J Lfxu;J:Lfsm;
  • Constructor Details

    • RecipeBookWidget

      public RecipeBookWidget(T craftingScreenHandler, List<RecipeBookWidget.Tab> tabs)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;<init>(Lnet/minecraft/screen/AbstractRecipeScreenHandler;Ljava/util/List;)V
      intermediary <init> Lnet/minecraft/class_507;<init>(Lnet/minecraft/class_1729;Ljava/util/List;)V
      official <init> Lfxu;<init>(Lcuq;Ljava/util/List;)V
  • Method Details

    • initialize

      public void initialize(int parentWidth, int parentHeight, MinecraftClient client, boolean narrow)
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;initialize(IILnet/minecraft/client/MinecraftClient;Z)V
      intermediary method_2597 Lnet/minecraft/class_507;method_2597(IILnet/minecraft/class_310;Z)V
      official a Lfxu;a(IILfmf;Z)V
    • reset

      private void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;reset()V
      intermediary method_2579 Lnet/minecraft/class_507;method_2579()V
      official i Lfxu;i()V
    • getTop

      private int getTop()
      Mappings:
      Namespace Name Mixin selector
      named getTop Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;getTop()I
      intermediary method_64366 Lnet/minecraft/class_507;method_64366()I
      official j Lfxu;j()I
    • getLeft

      private int getLeft()
      Mappings:
      Namespace Name Mixin selector
      named getLeft Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;getLeft()I
      intermediary method_64367 Lnet/minecraft/class_507;method_64367()I
      official k Lfxu;k()I
    • updateTooltip

      private void updateTooltip()
      Mappings:
      Namespace Name Mixin selector
      named updateTooltip Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;updateTooltip()V
      intermediary method_47429 Lnet/minecraft/class_507;method_47429()V
      official l Lfxu;l()V
    • setBookButtonTexture

      protected abstract void setBookButtonTexture()
      Mappings:
      Namespace Name Mixin selector
      named setBookButtonTexture Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;setBookButtonTexture()V
      intermediary method_2585 Lnet/minecraft/class_507;method_2585()V
      official a Lfxu;a()V
    • findLeftEdge

      public int findLeftEdge(int width, int backgroundWidth)
      Mappings:
      Namespace Name Mixin selector
      named findLeftEdge Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;findLeftEdge(II)I
      intermediary method_2595 Lnet/minecraft/class_507;method_2595(II)I
      official a Lfxu;a(II)I
    • toggleOpen

      public void toggleOpen()
      Mappings:
      Namespace Name Mixin selector
      named toggleOpen Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;toggleOpen()V
      intermediary method_2591 Lnet/minecraft/class_507;method_2591()V
      official c Lfxu;c()V
    • isOpen

      public boolean isOpen()
      Mappings:
      Namespace Name Mixin selector
      named isOpen Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isOpen()Z
      intermediary method_2605 Lnet/minecraft/class_507;method_2605()Z
      official d Lfxu;d()Z
    • isGuiOpen

      private boolean isGuiOpen()
      Mappings:
      Namespace Name Mixin selector
      named isGuiOpen Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isGuiOpen()Z
      intermediary method_36485 Lnet/minecraft/class_507;method_36485()Z
      official m Lfxu;m()Z
    • setOpen

      protected void setOpen(boolean opened)
      Mappings:
      Namespace Name Mixin selector
      named setOpen Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;setOpen(Z)V
      intermediary method_2593 Lnet/minecraft/class_507;method_2593(Z)V
      official b Lfxu;b(Z)V
    • isValid

      protected abstract boolean isValid(Slot slot)
      Mappings:
      Namespace Name Mixin selector
      named isValid Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isValid(Lnet/minecraft/screen/slot/Slot;)Z
      intermediary method_62023 Lnet/minecraft/class_507;method_62023(Lnet/minecraft/class_1735;)Z
      official a Lfxu;a(Lcuy;)Z
    • onMouseClick

      public void onMouseClick(@Nullable @Nullable Slot slot)
      Mappings:
      Namespace Name Mixin selector
      named onMouseClick Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;onMouseClick(Lnet/minecraft/screen/slot/Slot;)V
      intermediary method_62044 Lnet/minecraft/class_507;method_62044(Lnet/minecraft/class_1735;)V
      official b Lfxu;b(Lcuy;)V
    • populateAllRecipes

      private void populateAllRecipes()
      Mappings:
      Namespace Name Mixin selector
      named populateAllRecipes Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;populateAllRecipes()V
      intermediary method_65072 Lnet/minecraft/class_507;method_65072()V
      official n Lfxu;n()V
    • populateRecipes

      protected abstract void populateRecipes(RecipeResultCollection recipeResultCollection, RecipeFinder recipeFinder)
      Mappings:
      Namespace Name Mixin selector
      named populateRecipes Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;populateRecipes(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/recipe/RecipeFinder;)V
      intermediary method_62024 Lnet/minecraft/class_507;method_62024(Lnet/minecraft/class_516;Lnet/minecraft/class_9875;)V
      official a Lfxu;a(Lfxy;Lcqb;)V
    • refreshResults

      private void refreshResults(boolean resetCurrentPage, boolean filteringCraftable)
      Mappings:
      Namespace Name Mixin selector
      named refreshResults Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;refreshResults(ZZ)V
      intermediary method_2603 Lnet/minecraft/class_507;method_2603(ZZ)V
      official a Lfxu;a(ZZ)V
    • refreshTabButtons

      private void refreshTabButtons(boolean filteringCraftable)
      Mappings:
      Namespace Name Mixin selector
      named refreshTabButtons Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;refreshTabButtons(Z)V
      intermediary method_2606 Lnet/minecraft/class_507;method_2606(Z)V
      official c Lfxu;c(Z)V
    • update

      public void update()
      Mappings:
      Namespace Name Mixin selector
      named update Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;update()V
      intermediary method_2590 Lnet/minecraft/class_507;method_2590()V
      official e Lfxu;e()V
    • refreshInputs

      private void refreshInputs()
      Mappings:
      Namespace Name Mixin selector
      named refreshInputs Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;refreshInputs()V
      intermediary method_2587 Lnet/minecraft/class_507;method_2587()V
      official o Lfxu;o()V
    • isFilteringCraftable

      private boolean isFilteringCraftable()
      Mappings:
      Namespace Name Mixin selector
      named isFilteringCraftable Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isFilteringCraftable()Z
      intermediary method_62045 Lnet/minecraft/class_507;method_62045()Z
      official p Lfxu;p()Z
    • render

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

      public void drawTooltip(DrawContext context, int x, int y, @Nullable @Nullable Slot slot)
      Mappings:
      Namespace Name Mixin selector
      named drawTooltip Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;drawTooltip(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/screen/slot/Slot;)V
      intermediary method_2601 Lnet/minecraft/class_507;method_2601(Lnet/minecraft/class_332;IILnet/minecraft/class_1735;)V
      official a Lfxu;a(Lfnr;IILcuy;)V
    • getToggleCraftableButtonText

      protected abstract Text getToggleCraftableButtonText()
      Mappings:
      Namespace Name Mixin selector
      named getToggleCraftableButtonText Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;getToggleCraftableButtonText()Lnet/minecraft/text/Text;
      intermediary method_17064 Lnet/minecraft/class_507;method_17064()Lnet/minecraft/class_2561;
      official b Lfxu;b()Lxv;
    • drawGhostSlots

      public void drawGhostSlots(DrawContext context, boolean resultHasPadding)
      Mappings:
      Namespace Name Mixin selector
      named drawGhostSlots Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;drawGhostSlots(Lnet/minecraft/client/gui/DrawContext;Z)V
      intermediary method_2581 Lnet/minecraft/class_507;method_2581(Lnet/minecraft/class_332;Z)V
      official a Lfxu;a(Lfnr;Z)V
    • 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
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      official a Lfqc;a(DDI)Z
    • select

      private boolean select(RecipeResultCollection results, NetworkRecipeId recipeId)
      Mappings:
      Namespace Name Mixin selector
      named select Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;select(Lnet/minecraft/client/gui/screen/recipebook/RecipeResultCollection;Lnet/minecraft/recipe/NetworkRecipeId;)Z
      intermediary method_62889 Lnet/minecraft/class_507;method_62889(Lnet/minecraft/class_516;Lnet/minecraft/class_10298;)Z
      official a Lfxu;a(Lfxy;Lddk;)Z
    • toggleFilteringCraftable

      private boolean toggleFilteringCraftable()
      Mappings:
      Namespace Name Mixin selector
      named toggleFilteringCraftable Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;toggleFilteringCraftable()Z
      intermediary method_2589 Lnet/minecraft/class_507;method_2589()Z
      official q Lfxu;q()Z
    • isClickOutsideBounds

      public boolean isClickOutsideBounds(double mouseX, double mouseY, int x, int y, int backgroundWidth, int backgroundHeight, int button)
      Mappings:
      Namespace Name Mixin selector
      named isClickOutsideBounds Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isClickOutsideBounds(DDIIIII)Z
      intermediary method_2598 Lnet/minecraft/class_507;method_2598(DDIIIII)Z
      official a Lfxu;a(DDIIIII)Z
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfqc;a(III)Z
    • keyReleased

      public boolean keyReleased(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyReleased in interface Element
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyReleased Lnet/minecraft/client/gui/Element;keyReleased(III)Z
      intermediary method_16803 Lnet/minecraft/class_364;method_16803(III)Z
      official c Lfqc;c(III)Z
    • charTyped

      public boolean charTyped(char chr, int modifiers)
      Callback for when a character input has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      charTyped in interface Element
      Parameters:
      chr - the captured character
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named charTyped Lnet/minecraft/client/gui/Element;charTyped(CI)Z
      intermediary method_25400 Lnet/minecraft/class_364;method_25400(CI)Z
      official a Lfqc;a(CI)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
      named isMouseOver Lnet/minecraft/client/gui/Element;isMouseOver(DD)Z
      intermediary method_25405 Lnet/minecraft/class_364;method_25405(DD)Z
      official c Lfqc;c(DD)Z
    • setFocused

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

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

      private void refreshSearchResults()
      Mappings:
      Namespace Name Mixin selector
      named refreshSearchResults Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;refreshSearchResults()V
      intermediary method_2586 Lnet/minecraft/class_507;method_2586()V
      official r Lfxu;r()V
    • triggerPirateSpeakEasterEgg

      private void triggerPirateSpeakEasterEgg(String search)
      Mappings:
      Namespace Name Mixin selector
      named triggerPirateSpeakEasterEgg Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;triggerPirateSpeakEasterEgg(Ljava/lang/String;)V
      intermediary method_2576 Lnet/minecraft/class_507;method_2576(Ljava/lang/String;)V
      official a Lfxu;a(Ljava/lang/String;)V
    • isWide

      private boolean isWide()
      Mappings:
      Namespace Name Mixin selector
      named isWide Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;isWide()Z
      intermediary method_2604 Lnet/minecraft/class_507;method_2604()Z
      official s Lfxu;s()Z
    • refresh

      public void refresh()
      Mappings:
      Namespace Name Mixin selector
      named refresh Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;refresh()V
      intermediary method_2592 Lnet/minecraft/class_507;method_2592()V
      official g Lfxu;g()V
    • onRecipeDisplayed

      public void onRecipeDisplayed(NetworkRecipeId recipeId)
      Mappings:
      Namespace Name Mixin selector
      named onRecipeDisplayed Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;onRecipeDisplayed(Lnet/minecraft/recipe/NetworkRecipeId;)V
      intermediary method_64876 Lnet/minecraft/class_507;method_64876(Lnet/minecraft/class_10298;)V
      official a Lfxu;a(Lddk;)V
    • onCraftFailed

      public void onCraftFailed(RecipeDisplay display)
      Mappings:
      Namespace Name Mixin selector
      named onCraftFailed Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;onCraftFailed(Lnet/minecraft/recipe/display/RecipeDisplay;)V
      intermediary method_64875 Lnet/minecraft/class_507;method_64875(Lnet/minecraft/class_10295;)V
      official a Lfxu;a(Lddi;)V
    • showGhostRecipe

      protected abstract void showGhostRecipe(GhostRecipe ghostRecipe, RecipeDisplay display, ContextParameterMap context)
      Mappings:
      Namespace Name Mixin selector
      named showGhostRecipe Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;showGhostRecipe(Lnet/minecraft/client/gui/screen/recipebook/GhostRecipe;Lnet/minecraft/recipe/display/RecipeDisplay;Lnet/minecraft/util/context/ContextParameterMap;)V
      intermediary method_64868 Lnet/minecraft/class_507;method_64868(Lnet/minecraft/class_9934;Lnet/minecraft/class_10295;Lnet/minecraft/class_10352;)V
      official a Lfxu;a(Lfxs;Lddi;Lbbp;)V
    • sendBookDataPacket

      protected void sendBookDataPacket()
      Mappings:
      Namespace Name Mixin selector
      named sendBookDataPacket Lnet/minecraft/client/gui/screen/recipebook/RecipeBookWidget;sendBookDataPacket()V
      intermediary method_2588 Lnet/minecraft/class_507;method_2588()V
      official h Lfxu;h()V
    • getType

      public Selectable.SelectionType getType()
      Specified by:
      getType in interface Selectable
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/client/gui/Selectable;getType()Lnet/minecraft/client/gui/Selectable$SelectionType;
      intermediary method_37018 Lnet/minecraft/class_6379;method_37018()Lnet/minecraft/class_6379$class_6380;
      official u Lfsa;u()Lfsa$a;
    • appendNarrations

      public void appendNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendNarrations in interface Narratable
      Mappings:
      Namespace Name Mixin selector
      named appendNarrations Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
      intermediary method_37020 Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
      official b Lfsd;b(Lfsc;)V