Class AbstractPNCCategory<T>
java.lang.Object
me.desht.pneumaticcraft.common.thirdparty.jei.AbstractPNCCategory<T>
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<T>
- Direct Known Subclasses:
JEIAmadronTradeCategory,JEIAssemblyControllerCategory,JEIBlockHeatPropertiesCategory,JEIEtchingTankCategory,JEIExplosionCraftingCategory,JEIFluidMixerCategory,JEIHeatFrameCoolingCategory,JEIMemoryEssenceCategory,JEIPlasticSolidifyingCategory,JEIPressureChamberRecipeCategory,JEIRefineryCategory,JEISpawnerExtractionCategory,JEIThermopneumaticProcessingPlantCategory,JEIUVLightBoxCategory,JEIYeastCraftingCategory
public abstract class AbstractPNCCategory<T>
extends Object
implements mezz.jei.api.recipe.category.IRecipeCategory<T>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPNCCategory(mezz.jei.api.recipe.RecipeType<T> type, net.minecraft.network.chat.Component localizedName, mezz.jei.api.gui.drawable.IDrawable background, mezz.jei.api.gui.drawable.IDrawable icon) -
Method Summary
Modifier and TypeMethodDescriptionmezz.jei.api.gui.drawable.IDrawableReturns the drawable background for a single recipe in this category.mezz.jei.api.gui.drawable.IDrawablegetIcon()Icon for the category tab.Returns the class of recipes that this recipe category handles.mezz.jei.api.recipe.RecipeType<T>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.Methods 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
draw, draw, getRegistryName, getTooltipStrings, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe, setRecipe
-
Constructor Details
-
AbstractPNCCategory
protected AbstractPNCCategory(mezz.jei.api.recipe.RecipeType<T> type, net.minecraft.network.chat.Component localizedName, mezz.jei.api.gui.drawable.IDrawable background, mezz.jei.api.gui.drawable.IDrawable icon)
-
-
Method Details
-
getTitle
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.- Specified by:
getTitlein interfacemezz.jei.api.recipe.category.IRecipeCategory<T>
-
getBackground
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.- Specified by:
getBackgroundin interfacemezz.jei.api.recipe.category.IRecipeCategory<T>
-
getIcon
public mezz.jei.api.gui.drawable.IDrawable getIcon()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryIcon for the category tab. You can useIGuiHelper.createDrawableIngredient(IIngredientType, Object)to create a drawable from an ingredient.- Specified by:
getIconin interfacemezz.jei.api.recipe.category.IRecipeCategory<T>- Returns:
- icon to draw on the category tab, max size is 16x16 pixels.
-
getRecipeType
- Specified by:
getRecipeTypein interfacemezz.jei.api.recipe.category.IRecipeCategory<T>- Returns:
- the type of recipe that this category handles.
-
getUid
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.- Specified by:
getUidin interfacemezz.jei.api.recipe.category.IRecipeCategory<T>
-
getRecipeClass
Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns the class of recipes that this recipe category handles.- Specified by:
getRecipeClassin interfacemezz.jei.api.recipe.category.IRecipeCategory<T>
-