Class RecipeWidget

All Implemented Interfaces:
IGuiEventListener, IRenderable

public class RecipeWidget extends Widget
  • Field Details

    • RECIPE_BOOK_LOCATION

      private static final ResourceLocation RECIPE_BOOK_LOCATION
    • MORE_RECIPES_TOOLTIP

      private static final ITextComponent MORE_RECIPES_TOOLTIP
    • book

      private RecipeBook book
    • collection

      private RecipeList collection
    • time

      private float time
    • animationTime

      private float animationTime
    • currentIndex

      private int currentIndex
  • Constructor Details

    • RecipeWidget

      public RecipeWidget()
  • Method Details

    • init

      public void init(RecipeList p_203400_1_, RecipeBookPage p_203400_2_)
    • getCollection

      public RecipeList getCollection()
    • setPosition

      public void setPosition(int p_191770_1_, int p_191770_2_)
    • renderButton

      public void renderButton(MatrixStack p_230431_1_, int p_230431_2_, int p_230431_3_, float p_230431_4_)
      Overrides:
      renderButton in class Widget
    • getOrderedRecipes

      private List<IRecipe<?>> getOrderedRecipes()
    • isOnlyOption

      public boolean isOnlyOption()
    • getRecipe

      public IRecipe<?> getRecipe()
    • getTooltipText

      public List<ITextComponent> getTooltipText(Screen p_191772_1_)
    • getWidth

      public int getWidth()
      Overrides:
      getWidth in class Widget
    • isValidClickButton

      protected boolean isValidClickButton(int p_230987_1_)
      Overrides:
      isValidClickButton in class Widget