Class GenericRecipeCategory
java.lang.Object
com.minecolonies.core.compatibility.jei.JobBasedRecipeCategory<IGenericRecipe>
com.minecolonies.core.compatibility.jei.GenericRecipeCategory
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<IGenericRecipe>
The main JEI recipe category GUI implementation for IGenericRecipe.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.minecolonies.core.compatibility.jei.JobBasedRecipeCategory
JobBasedRecipeCategory.LootTableTooltipCallback, JobBasedRecipeCategory.RecipeIdTooltipCallback -
Field Summary
Fields inherited from class com.minecolonies.core.compatibility.jei.JobBasedRecipeCategory
chanceSlot, CITIZEN_H, CITIZEN_W, CITIZEN_X, CITIZEN_Y, FAKE_LEVEL, HEIGHT, job, slot, TEXTURE, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionGenericRecipeCategory(@NotNull BuildingEntry building, @NotNull IJob<?> job, @NotNull mezz.jei.api.helpers.IGuiHelper guiHelper, @NotNull mezz.jei.api.helpers.IModIdHelper modIdHelper) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModule(@NotNull ICraftingBuildingModule module) voidaddModule(@NotNull AnimalHerdingModule module) voiddraw(@NotNull IGenericRecipe recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, @NotNull net.minecraft.client.gui.GuiGraphics stack, double mouseX, double mouseY) @NotNull List<IGenericRecipe>findRecipes(@NotNull Map<CraftingType, List<IGenericRecipe>> vanilla, @NotNull List<net.minecraft.world.entity.animal.Animal> animals, @NotNull net.minecraft.world.level.Level world) protected @NotNull List<net.minecraft.network.chat.Component>generateInfoBlocks(@NotNull IGenericRecipe recipe) @NotNull List<net.minecraft.network.chat.Component>getTooltipStrings(@NotNull IGenericRecipe recipe, @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) voidsetRecipe(@NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull IGenericRecipe recipe, @NotNull mezz.jei.api.recipe.IFocusGroup focuses) Methods inherited from class com.minecolonies.core.compatibility.jei.JobBasedRecipeCategory
addToolSlot, getBackground, getCatalyst, getCatalyst, getIcon, getJob, getRecipeType, getTitle, getTitleAsTextComponentMethods 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, getWidth, handleInput, isHandled
-
Constructor Details
-
GenericRecipeCategory
public GenericRecipeCategory(@NotNull @NotNull BuildingEntry building, @NotNull @NotNull IJob<?> job, @NotNull @NotNull mezz.jei.api.helpers.IGuiHelper guiHelper, @NotNull @NotNull mezz.jei.api.helpers.IModIdHelper modIdHelper)
-
-
Method Details
-
addModule
-
addModule
-
generateInfoBlocks
@NotNull protected @NotNull List<net.minecraft.network.chat.Component> generateInfoBlocks(@NotNull @NotNull IGenericRecipe recipe) - Specified by:
generateInfoBlocksin classJobBasedRecipeCategory<IGenericRecipe>
-
setRecipe
public void setRecipe(@NotNull @NotNull mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, @NotNull @NotNull IGenericRecipe recipe, @NotNull @NotNull mezz.jei.api.recipe.IFocusGroup focuses) -
draw
public void draw(@NotNull @NotNull IGenericRecipe 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<IGenericRecipe>- Overrides:
drawin classJobBasedRecipeCategory<IGenericRecipe>
-
getTooltipStrings
@NotNull public @NotNull List<net.minecraft.network.chat.Component> getTooltipStrings(@NotNull @NotNull IGenericRecipe recipe, @NotNull @NotNull mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY) - Specified by:
getTooltipStringsin interfacemezz.jei.api.recipe.category.IRecipeCategory<IGenericRecipe>- Overrides:
getTooltipStringsin classJobBasedRecipeCategory<IGenericRecipe>
-
findRecipes
@NotNull public @NotNull List<IGenericRecipe> findRecipes(@NotNull @NotNull Map<CraftingType, List<IGenericRecipe>> vanilla, @NotNull @NotNull List<net.minecraft.world.entity.animal.Animal> animals, @NotNull @NotNull net.minecraft.world.level.Level world) - Overrides:
findRecipesin classJobBasedRecipeCategory<IGenericRecipe>
-