public class EnchantmentCategory extends BlankJEIRecipeCategory<EnchantmentWrapper>
| Constructor and Description |
|---|
EnchantmentCategory() |
| Modifier and Type | Method and Description |
|---|---|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
java.lang.Class<? extends EnchantmentWrapper> |
getRecipeClass() |
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
net.minecraft.util.text.ITextComponent |
getTitleAsTextComponent()
Returns a text component representing the name of this recipe type.
|
net.minecraft.util.ResourceLocation |
getUid()
Returns a unique ID for this recipe category.
|
void |
setRecipe(mezz.jei.api.gui.IRecipeLayout recipeLayout,
EnchantmentWrapper recipeWrapper,
mezz.jei.api.ingredients.IIngredients ingredients)
Set the
IRecipeLayout properties from the recipe. |
draw, getIcon, getTooltipStrings, setIngredients@Nonnull public net.minecraft.util.ResourceLocation getUid()
mezz.jei.api.recipe.category.IRecipeCategoryfor vanilla examples@Nonnull public java.lang.String getTitle()
mezz.jei.api.recipe.category.IRecipeCategory@Nonnull public net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
mezz.jei.api.recipe.category.IRecipeCategory@Nonnull public mezz.jei.api.gui.drawable.IDrawable getBackground()
mezz.jei.api.recipe.category.IRecipeCategorypublic java.lang.Class<? extends EnchantmentWrapper> getRecipeClass()
public void setRecipe(@Nonnull
mezz.jei.api.gui.IRecipeLayout recipeLayout,
@Nonnull
EnchantmentWrapper recipeWrapper,
@Nonnull
mezz.jei.api.ingredients.IIngredients ingredients)
mezz.jei.api.recipe.category.IRecipeCategoryIRecipeLayout properties from the recipe.recipeLayout - the layout that needs its properties set.recipeWrapper - the recipe, for extra information.ingredients - the ingredients, already set earlier by IRecipeCategory.setIngredients(T, mezz.jei.api.ingredients.IIngredients)