Class ToolRecipeCategory
java.lang.Object
mezz.jei.api.recipe.category.AbstractRecipeCategory<ToolUsage>
com.minecolonies.core.compatibility.jei.ToolRecipeCategory
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<ToolUsage>
public class ToolRecipeCategory
extends mezz.jei.api.recipe.category.AbstractRecipeCategory<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 TypeMethodDescriptionvoidcreateRecipeExtras(@NotNull mezz.jei.api.gui.widgets.IRecipeExtrasBuilder builder, @NotNull ToolUsage recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses) voiddraw(@NotNull ToolUsage recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull net.minecraft.client.gui.GuiGraphics stack, double mouseX, double mouseY) findRecipes(net.minecraft.world.level.Level level) Generate the list ofToolUsage.voidsetRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull ToolUsage recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses) Methods inherited from class mezz.jei.api.recipe.category.AbstractRecipeCategory
getHeight, getIcon, getRecipeType, getTitle, getWidthMethods 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
createRecipeExtras, getBackground, getCodec, getRegistryName, getTooltip, getTooltipStrings, handleInput, isHandled, needsRecipeBorder, onDisplayedIngredientsUpdate
-
Constructor Details
-
ToolRecipeCategory
public ToolRecipeCategory(@NotNull @NotNull mezz.jei.api.helpers.IGuiHelper guiHelper) Constructor
-
-
Method Details
-
findRecipes
Generate the list ofToolUsage. -
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) -
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) -
createRecipeExtras
public void createRecipeExtras(@NotNull @NotNull mezz.jei.api.gui.widgets.IRecipeExtrasBuilder builder, @NotNull @NotNull ToolUsage recipe, @NotNull @NotNull mezz.jei.api.recipe.IFocusGroup focuses)
-