Class RecipeWidget

    • Field Detail

      • RECIPE_BOOK_LOCATION

        private static final ResourceLocation RECIPE_BOOK_LOCATION
      • MORE_RECIPES_TOOLTIP

        private static final ITextComponent MORE_RECIPES_TOOLTIP
      • time

        private float time
      • animationTime

        private float animationTime
      • currentIndex

        private int currentIndex
    • Constructor Detail

      • RecipeWidget

        public RecipeWidget()
    • Method Detail

      • 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 java.util.List<IRecipe<?>> getOrderedRecipes()
      • isOnlyOption

        public boolean isOnlyOption()
      • getRecipe

        public IRecipe<?> getRecipe()
      • getWidth

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

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