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

    Constructors
    Modifier
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    mezz.jei.api.gui.drawable.IDrawable
    Returns the drawable background for a single recipe in this category.
    mezz.jei.api.gui.drawable.IDrawable
    Icon for the category tab.
    Class<? extends T>
    Returns the class of recipes that this recipe category handles.
    mezz.jei.api.recipe.RecipeType<T>
     
    net.minecraft.network.chat.Component
    Returns a text component representing the name of this recipe type.
    net.minecraft.resources.ResourceLocation
    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, wait

    Methods 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.IRecipeCategory
      Returns a text component representing the name of this recipe type. Drawn at the top of the recipe GUI pages for this category.
      Specified by:
      getTitle in interface mezz.jei.api.recipe.category.IRecipeCategory<T>
    • getBackground

      public mezz.jei.api.gui.drawable.IDrawable getBackground()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns 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:
      getBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<T>
    • getIcon

      public mezz.jei.api.gui.drawable.IDrawable getIcon()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Icon for the category tab. You can use IGuiHelper.createDrawableIngredient(IIngredientType, Object) to create a drawable from an ingredient.
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<T>
      Returns:
      icon to draw on the category tab, max size is 16x16 pixels.
    • getRecipeType

      public mezz.jei.api.recipe.RecipeType<T> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.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.IRecipeCategory
      Returns a unique ID for this recipe category. Referenced from recipes to identify which recipe category they belong to.
      Specified by:
      getUid in interface mezz.jei.api.recipe.category.IRecipeCategory<T>
    • getRecipeClass

      public Class<? extends T> getRecipeClass()
      Description copied from interface: mezz.jei.api.recipe.category.IRecipeCategory
      Returns the class of recipes that this recipe category handles.
      Specified by:
      getRecipeClass in interface mezz.jei.api.recipe.category.IRecipeCategory<T>