类 RecipeBookComponent<T extends RecipeBookMenu>

java.lang.Object
net.minecraft.client.gui.screens.recipebook.RecipeBookComponent<T>
所有已实现的接口:
GuiEventListener, Renderable, TabOrderedElement, NarratableEntry, NarrationSupplier
直接已知子类:
CraftingRecipeBookComponent, FurnaceRecipeBookComponent

public abstract class RecipeBookComponent<T extends RecipeBookMenu> extends Object implements Renderable, GuiEventListener, NarratableEntry
  • 字段详细资料

    • RECIPE_BUTTON_SPRITES

      public static final WidgetSprites RECIPE_BUTTON_SPRITES
    • RECIPE_BOOK_LOCATION

      protected static final ResourceLocation RECIPE_BOOK_LOCATION
    • BACKGROUND_TEXTURE_WIDTH

      private static final int BACKGROUND_TEXTURE_WIDTH
      另请参阅:
    • BACKGROUND_TEXTURE_HEIGHT

      private static final int BACKGROUND_TEXTURE_HEIGHT
      另请参阅:
    • SEARCH_HINT

      private static final Component SEARCH_HINT
    • IMAGE_WIDTH

      public static final int IMAGE_WIDTH
      另请参阅:
    • IMAGE_HEIGHT

      public static final int IMAGE_HEIGHT
      另请参阅:
    • OFFSET_X_POSITION

      private static final int OFFSET_X_POSITION
      另请参阅:
    • BORDER_WIDTH

      private static final int BORDER_WIDTH
      另请参阅:
    • ALL_RECIPES_TOOLTIP

      private static final Component ALL_RECIPES_TOOLTIP
    • TICKS_TO_SWAP_SLOT

      private static final int TICKS_TO_SWAP_SLOT
      另请参阅:
    • xOffset

      private int xOffset
    • width

      private int width
    • height

      private int height
    • time

      private float time
    • lastPlacedRecipe

      @Nullable private RecipeDisplayId lastPlacedRecipe
    • ghostSlots

      private final GhostSlots ghostSlots
    • tabButtons

      private final List<RecipeBookTabButton> tabButtons
    • selectedTab

      @Nullable private RecipeBookTabButton selectedTab
    • filterButton

      protected StateSwitchingButton filterButton
    • minecraft

      protected Minecraft minecraft
    • lastSearch

      private String lastSearch
    • tabInfos

      private final List<RecipeBookComponent.TabInfo> tabInfos
    • book

      private ClientRecipeBook book
    • recipeBookPage

      private final RecipeBookPage recipeBookPage
    • lastRecipe

      @Nullable private RecipeDisplayId lastRecipe
    • lastRecipeCollection

      @Nullable private RecipeCollection lastRecipeCollection
    • stackedContents

      private final StackedItemContents stackedContents
    • timesInventoryChanged

      private int timesInventoryChanged
    • ignoreTextInput

      private boolean ignoreTextInput
    • visible

      private boolean visible
    • widthTooNarrow

      private boolean widthTooNarrow
    • magnifierIconPlacement

      @Nullable private ScreenRectangle magnifierIconPlacement
  • 构造器详细资料

  • 方法详细资料

    • init

      public void init(int p_100310_, int p_100311_, Minecraft p_100312_, boolean p_100313_)
    • initVisuals

      private void initVisuals()
    • getYOrigin

      private int getYOrigin()
    • getXOrigin

      private int getXOrigin()
    • updateFilterButtonTooltip

      private void updateFilterButtonTooltip()
    • initFilterButtonTextures

      protected abstract void initFilterButtonTextures()
    • updateScreenPosition

      public int updateScreenPosition(int p_181402_, int p_181403_)
    • toggleVisibility

      public void toggleVisibility()
    • isVisible

      public boolean isVisible()
    • isVisibleAccordingToBookData

      private boolean isVisibleAccordingToBookData()
    • setVisible

      protected void setVisible(boolean p_100370_)
    • isCraftingSlot

      protected abstract boolean isCraftingSlot(Slot p_369976_)
    • slotClicked

      public void slotClicked(@Nullable Slot p_100315_)
    • selectMatchingRecipes

      private void selectMatchingRecipes()
    • selectMatchingRecipes

      protected abstract void selectMatchingRecipes(RecipeCollection p_362260_, StackedItemContents p_368403_)
    • updateCollections

      private void updateCollections(boolean p_100383_, boolean p_363367_)
    • updateTabs

      private void updateTabs(boolean p_361603_)
    • tick

      public void tick()
    • updateStackedContents

      private void updateStackedContents()
    • isFiltering

      private boolean isFiltering()
    • render

      public void render(GuiGraphics p_283597_, int p_282668_, int p_283506_, float p_282813_)
      指定者:
      render 在接口中 Renderable
    • renderTooltip

      public void renderTooltip(GuiGraphics p_281740_, int p_281520_, int p_282050_, @Nullable Slot p_369188_)
    • getRecipeFilterName

      protected abstract Component getRecipeFilterName()
    • renderGhostRecipe

      public void renderGhostRecipe(GuiGraphics p_283634_, boolean p_283495_)
    • mouseClicked

      public boolean mouseClicked(double p_100294_, double p_100295_, int p_100296_)
      指定者:
      mouseClicked 在接口中 GuiEventListener
    • tryPlaceRecipe

      private boolean tryPlaceRecipe(RecipeCollection p_369480_, RecipeDisplayId p_365779_)
    • toggleFiltering

      private boolean toggleFiltering()
    • hasClickedOutside

      public boolean hasClickedOutside(double p_100298_, double p_100299_, int p_100300_, int p_100301_, int p_100302_, int p_100303_, int p_100304_)
    • keyPressed

      public boolean keyPressed(int p_100306_, int p_100307_, int p_100308_)
      指定者:
      keyPressed 在接口中 GuiEventListener
    • keyReleased

      public boolean keyReleased(int p_100356_, int p_100357_, int p_100358_)
      指定者:
      keyReleased 在接口中 GuiEventListener
    • charTyped

      public boolean charTyped(char p_100291_, int p_100292_)
      指定者:
      charTyped 在接口中 GuiEventListener
    • isMouseOver

      public boolean isMouseOver(double p_100353_, double p_100354_)
      指定者:
      isMouseOver 在接口中 GuiEventListener
    • setFocused

      public void setFocused(boolean p_265089_)
      指定者:
      setFocused 在接口中 GuiEventListener
    • isFocused

      public boolean isFocused()
      指定者:
      isFocused 在接口中 GuiEventListener
    • checkSearchStringUpdate

      private void checkSearchStringUpdate()
    • pirateSpeechForThePeople

      private void pirateSpeechForThePeople(String p_100336_)
    • isOffsetNextToMainGUI

      private boolean isOffsetNextToMainGUI()
    • recipesUpdated

      public void recipesUpdated()
    • recipeShown

      public void recipeShown(RecipeDisplayId p_363874_)
    • fillGhostRecipe

      public void fillGhostRecipe(RecipeDisplay p_365238_)
    • fillGhostRecipe

      protected abstract void fillGhostRecipe(GhostSlots p_369382_, RecipeDisplay p_365034_, ContextMap p_367648_)
    • sendUpdateSettings

      protected void sendUpdateSettings()
    • narrationPriority

      public NarratableEntry.NarrationPriority narrationPriority()
      指定者:
      narrationPriority 在接口中 NarratableEntry
    • updateNarration

      public void updateNarration(NarrationElementOutput p_170046_)
      指定者:
      updateNarration 在接口中 NarrationSupplier