Package jeresources.jei.worldgen
Class WorldGenCategory
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected static intprotected static intprotected static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(WorldGenWrapper recipe, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)Draw extras or additional info about the recipe.mezz.jei.api.gui.drawable.IDrawableReturns the drawable background for a single recipe in this category.Class<? extends WorldGenWrapper>net.minecraft.network.chat.ComponentgetTitle()Returns a text component representing the name of this recipe type.net.minecraft.resources.ResourceLocationgetUid()Returns a unique ID for this recipe category.voidsetRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout, WorldGenWrapper recipeWrapper, mezz.jei.api.ingredients.IIngredients ingredients)Set theIRecipeLayoutproperties from the recipe.Methods inherited from class jeresources.jei.BlankJEIRecipeCategory
getIcon, getTooltipStrings, setIngredientsMethods 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
handleClick, handleInput, isHandled
-
Field Details
-
X_ITEM
protected static final int X_ITEM- See Also:
- Constant Field Values
-
Y_ITEM
protected static final int Y_ITEM- See Also:
- Constant Field Values
-
X_DROP_ITEM
protected static final int X_DROP_ITEM- See Also:
- Constant Field Values
-
Y_DROP_ITEM
protected static final int Y_DROP_ITEM- See Also:
- Constant Field Values
-
-
Constructor Details
-
WorldGenCategory
public WorldGenCategory()
-
-
Method Details
-
getUid
@Nonnull public net.minecraft.resources.ResourceLocation getUid()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a unique ID for this recipe category. Referenced from recipes to identify which recipe category they belong to.- See Also:
for vanilla examples
-
getTitle
@Nonnull public net.minecraft.network.chat.Component getTitle()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a text component representing the name of this recipe type. Drawn at the top of the recipe GUI pages for this category. -
getBackground
@Nonnull public mezz.jei.api.gui.drawable.IDrawable getBackground()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns the drawable background for a single recipe in this category. The size of the background determines how recipes are laid out by JEI, make sure it is the right size to contains everything being displayed. -
getRecipeClass
-
draw
public void draw(WorldGenWrapper recipe, com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryDraw extras or additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled byIRecipeCategory.getTooltipStrings(Object, double, double)- Specified by:
drawin interfacemezz.jei.api.recipe.category.IRecipeCategory<WorldGenWrapper>- Overrides:
drawin classBlankJEIRecipeCategory<WorldGenWrapper>mouseX- the X position of the mouse, relative to the recipe.mouseY- the Y position of the mouse, relative to the recipe.- See Also:
for a simple class for drawing things.,for useful functions.
-
setRecipe
public void setRecipe(@Nonnull mezz.jei.api.gui.IRecipeLayout recipeLayout, @Nonnull WorldGenWrapper recipeWrapper, @Nonnull mezz.jei.api.ingredients.IIngredients ingredients)Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategorySet theIRecipeLayoutproperties from the recipe.- Parameters:
recipeLayout- the layout that needs its properties set.recipeWrapper- the recipe, for extra information.ingredients- the ingredients, already set earlier byIRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)
-