public abstract class AbstractPNCCategory<T>
extends java.lang.Object
implements mezz.jei.api.recipe.category.IRecipeCategory<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractPNCCategory(net.minecraft.util.ResourceLocation id,
java.lang.Class<? extends T> cls,
net.minecraft.util.text.ITextComponent localizedName,
mezz.jei.api.gui.drawable.IDrawable background,
mezz.jei.api.gui.drawable.IDrawable icon) |
| Modifier and Type | Method and Description |
|---|---|
mezz.jei.api.gui.drawable.IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
mezz.jei.api.gui.drawable.IDrawable |
getIcon()
Icon for the category tab.
|
java.lang.Class<? extends T> |
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.
|
protected AbstractPNCCategory(net.minecraft.util.ResourceLocation id,
java.lang.Class<? extends T> cls,
net.minecraft.util.text.ITextComponent localizedName,
mezz.jei.api.gui.drawable.IDrawable background,
mezz.jei.api.gui.drawable.IDrawable icon)
public java.lang.String getTitle()
mezz.jei.api.recipe.category.IRecipeCategorygetTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<T>public net.minecraft.util.text.ITextComponent getTitleAsTextComponent()
mezz.jei.api.recipe.category.IRecipeCategorygetTitleAsTextComponent in interface mezz.jei.api.recipe.category.IRecipeCategory<T>public mezz.jei.api.gui.drawable.IDrawable getBackground()
mezz.jei.api.recipe.category.IRecipeCategorygetBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<T>public mezz.jei.api.gui.drawable.IDrawable getIcon()
mezz.jei.api.recipe.category.IRecipeCategoryIGuiHelper.createDrawableIngredient(Object) to create a drawable from an ingredient.getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<T>public net.minecraft.util.ResourceLocation getUid()
mezz.jei.api.recipe.category.IRecipeCategorygetUid in interface mezz.jei.api.recipe.category.IRecipeCategory<T>for vanilla examples