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
ConstructorsConstructorDescriptionToolRecipeCategory(@NotNull mezz.jei.api.helpers.IGuiHelper guiHelper) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(@NotNull ToolUsage recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull net.minecraft.client.gui.GuiGraphics stack, double mouseX, double mouseY) Generate the list ofToolUsage.@NotNull mezz.jei.api.gui.drawable.IDrawable@NotNull mezz.jei.api.gui.drawable.IDrawablegetIcon()@NotNull mezz.jei.api.recipe.RecipeType<ToolUsage>@NotNull net.minecraft.network.chat.ComponentgetTitle()voidsetRecipe(@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, waitMethods 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
Generate the list ofToolUsage. -
getRecipeType
- Specified by:
getRecipeTypein interfacemezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
-
getTitle
@NotNull public @NotNull net.minecraft.network.chat.Component getTitle()- Specified by:
getTitlein interfacemezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
-
getBackground
@NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getBackground()- Specified by:
getBackgroundin interfacemezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
-
getIcon
@NotNull public @NotNull mezz.jei.api.gui.drawable.IDrawable getIcon()- Specified by:
getIconin interfacemezz.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:
setRecipein interfacemezz.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:
drawin interfacemezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
-