Class OverlayRecipeComponent

java.lang.Object
net.minecraft.client.gui.screens.recipebook.OverlayRecipeComponent
All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement

public class OverlayRecipeComponent extends Object implements Renderable, GuiEventListener
  • Field Details

    • OVERLAY_RECIPE_SPRITE

      private static final ResourceLocation OVERLAY_RECIPE_SPRITE
    • FURNACE_OVERLAY_HIGHLIGHTED_SPRITE

      static final ResourceLocation FURNACE_OVERLAY_HIGHLIGHTED_SPRITE
    • FURNACE_OVERLAY_SPRITE

      static final ResourceLocation FURNACE_OVERLAY_SPRITE
    • CRAFTING_OVERLAY_HIGHLIGHTED_SPRITE

      static final ResourceLocation CRAFTING_OVERLAY_HIGHLIGHTED_SPRITE
    • CRAFTING_OVERLAY_SPRITE

      static final ResourceLocation CRAFTING_OVERLAY_SPRITE
    • FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_SPRITE

      static final ResourceLocation FURNACE_OVERLAY_DISABLED_HIGHLIGHTED_SPRITE
    • FURNACE_OVERLAY_DISABLED_SPRITE

      static final ResourceLocation FURNACE_OVERLAY_DISABLED_SPRITE
    • CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_SPRITE

      static final ResourceLocation CRAFTING_OVERLAY_DISABLED_HIGHLIGHTED_SPRITE
    • CRAFTING_OVERLAY_DISABLED_SPRITE

      static final ResourceLocation CRAFTING_OVERLAY_DISABLED_SPRITE
    • MAX_ROW

      private static final int MAX_ROW
      See Also:
    • MAX_ROW_LARGE

      private static final int MAX_ROW_LARGE
      See Also:
    • ITEM_RENDER_SCALE

      private static final float ITEM_RENDER_SCALE
      See Also:
    • BUTTON_SIZE

      public static final int BUTTON_SIZE
      See Also:
    • recipeButtons

      private final List<OverlayRecipeComponent.OverlayRecipeButton> recipeButtons
    • isVisible

      private boolean isVisible
    • x

      private int x
    • y

      private int y
    • minecraft

      private Minecraft minecraft
    • collection

      private RecipeCollection collection
    • lastRecipeClicked

      @Nullable private RecipeHolder<?> lastRecipeClicked
    • time

      float time
    • isFurnaceMenu

      boolean isFurnaceMenu
  • Constructor Details

    • OverlayRecipeComponent

      public OverlayRecipeComponent()
  • Method Details

    • init

      public void init(Minecraft p_100195_, RecipeCollection p_100196_, int p_100197_, int p_100198_, int p_100199_, int p_100200_, float p_100201_)
    • getRecipeCollection

      public RecipeCollection getRecipeCollection()
    • getLastRecipeClicked

      @Nullable public RecipeHolder<?> getLastRecipeClicked()
    • mouseClicked

      public boolean mouseClicked(double p_100186_, double p_100187_, int p_100188_)
      Specified by:
      mouseClicked in interface GuiEventListener
    • isMouseOver

      public boolean isMouseOver(double p_100208_, double p_100209_)
      Specified by:
      isMouseOver in interface GuiEventListener
    • render

      public void render(GuiGraphics p_281618_, int p_282646_, int p_283687_, float p_283147_)
      Specified by:
      render in interface Renderable
    • setVisible

      public void setVisible(boolean p_100205_)
    • isVisible

      public boolean isVisible()
    • setFocused

      public void setFocused(boolean p_265597_)
      Specified by:
      setFocused in interface GuiEventListener
    • isFocused

      public boolean isFocused()
      Specified by:
      isFocused in interface GuiEventListener