Class ToolRecipeCategory

java.lang.Object
com.minecolonies.core.compatibility.jei.ToolRecipeCategory
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>

public class ToolRecipeCategory extends Object implements mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
JEI recipe category showing supported tool and armor levels.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ToolRecipeCategory(@NotNull mezz.jei.api.helpers.IGuiHelper guiHelper)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(@NotNull ToolUsage recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull net.minecraft.client.gui.GuiGraphics stack, double mouseX, double mouseY)
     
    static @NotNull List<ToolUsage>
    Generate the list of ToolUsage.
    @NotNull mezz.jei.api.gui.drawable.IDrawable
     
    @NotNull mezz.jei.api.gui.drawable.IDrawable
     
    @NotNull mezz.jei.api.recipe.RecipeType<ToolUsage>
     
    @NotNull net.minecraft.network.chat.Component
     
    void
    setRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull ToolUsage recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface mezz.jei.api.recipe.category.IRecipeCategory

    getHeight, getRegistryName, getTooltipStrings, getWidth, handleInput, isHandled
  • Constructor Details

    • ToolRecipeCategory

      public ToolRecipeCategory(@NotNull @NotNull mezz.jei.api.helpers.IGuiHelper guiHelper)
      Constructor
  • Method Details

    • findRecipes

      @NotNull public static @NotNull List<ToolUsage> findRecipes()
      Generate the list of ToolUsage.
    • getRecipeType

      @NotNull public @NotNull mezz.jei.api.recipe.RecipeType<ToolUsage> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
    • getTitle

      @NotNull public @NotNull net.minecraft.network.chat.Component getTitle()
      Specified by:
      getTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
    • getBackground

      @NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getBackground()
      Specified by:
      getBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
    • getIcon

      @NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getIcon()
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
    • setRecipe

      public void setRecipe(@NotNull @NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull @NotNull ToolUsage recipe, @NotNull @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
      Specified by:
      setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
    • draw

      public void draw(@NotNull @NotNull ToolUsage recipe, @NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull @NotNull net.minecraft.client.gui.GuiGraphics stack, double mouseX, double mouseY)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>