Class RecipeBookGui

java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.recipebook.RecipeBookGui
All Implemented Interfaces:
IGuiEventListener, IRenderable, IRecipeUpdateListener, IRecipePlacer<Ingredient>
Direct Known Subclasses:
AbstractRecipeBookGui

  • Field Details

  • Constructor Details

    • RecipeBookGui

      public RecipeBookGui()
  • Method Details

    • init

      public void init(int p_201520_1_, int p_201520_2_, Minecraft p_201520_3_, boolean p_201520_4_, RecipeBookContainer<?> p_201520_5_)
    • initVisuals

      public void initVisuals(boolean p_201518_1_)
    • changeFocus

      public boolean changeFocus(boolean p_231049_1_)
      Specified by:
      changeFocus in interface IGuiEventListener
    • initFilterButtonTextures

      protected void initFilterButtonTextures()
    • removed

      public void removed()
    • updateScreenPosition

      public int updateScreenPosition(boolean p_193011_1_, int p_193011_2_, int p_193011_3_)
    • toggleVisibility

      public void toggleVisibility()
    • isVisible

      public boolean isVisible()
    • setVisible

      protected void setVisible(boolean p_193006_1_)
    • slotClicked

      public void slotClicked(@Nullable Slot p_191874_1_)
    • updateCollections

      private void updateCollections(boolean p_193003_1_)
    • updateTabs

      private void updateTabs()
    • tick

      public void tick()
    • updateStackedContents

      private void updateStackedContents()
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
    • renderTooltip

      public void renderTooltip(MatrixStack p_238924_1_, int p_238924_2_, int p_238924_3_, int p_238924_4_, int p_238924_5_)
    • getFilterButtonTooltip

      private ITextComponent getFilterButtonTooltip()
    • getRecipeFilterName

      protected ITextComponent getRecipeFilterName()
    • renderGhostRecipeTooltip

      private void renderGhostRecipeTooltip(MatrixStack p_238925_1_, int p_238925_2_, int p_238925_3_, int p_238925_4_, int p_238925_5_)
    • renderGhostRecipe

      public void renderGhostRecipe(MatrixStack p_230477_1_, int p_230477_2_, int p_230477_3_, boolean p_230477_4_, float p_230477_5_)
    • mouseClicked

      public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
      Specified by:
      mouseClicked in interface IGuiEventListener
    • toggleFiltering

      private boolean toggleFiltering()
    • hasClickedOutside

      public boolean hasClickedOutside(double p_195604_1_, double p_195604_3_, int p_195604_5_, int p_195604_6_, int p_195604_7_, int p_195604_8_, int p_195604_9_)
    • keyPressed

      public boolean keyPressed(int p_231046_1_, int p_231046_2_, int p_231046_3_)
      Specified by:
      keyPressed in interface IGuiEventListener
    • keyReleased

      public boolean keyReleased(int p_223281_1_, int p_223281_2_, int p_223281_3_)
      Specified by:
      keyReleased in interface IGuiEventListener
    • charTyped

      public boolean charTyped(char p_231042_1_, int p_231042_2_)
      Specified by:
      charTyped in interface IGuiEventListener
    • isMouseOver

      public boolean isMouseOver(double p_231047_1_, double p_231047_3_)
      Specified by:
      isMouseOver in interface IGuiEventListener
    • checkSearchStringUpdate

      private void checkSearchStringUpdate()
    • pirateSpeechForThePeople

      private void pirateSpeechForThePeople(String p_193716_1_)
    • isOffsetNextToMainGUI

      private boolean isOffsetNextToMainGUI()
    • recipesUpdated

      public void recipesUpdated()
    • recipesShown

      public void recipesShown(List<IRecipe<?>> p_193001_1_)
      Specified by:
      recipesShown in interface IRecipeUpdateListener
    • setupGhostRecipe

      public void setupGhostRecipe(IRecipe<?> p_193951_1_, List<Slot> p_193951_2_)
    • addItemToSlot

      public void addItemToSlot(Iterator<Ingredient> p_201500_1_, int p_201500_2_, int p_201500_3_, int p_201500_4_, int p_201500_5_)
      Specified by:
      addItemToSlot in interface IRecipePlacer<Ingredient>
    • sendUpdateSettings

      protected void sendUpdateSettings()