Class CreateRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>

java.lang.Object
com.simibubi.create.compat.jei.category.CreateRecipeCategory<T>
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<T>
Direct Known Subclasses:
BasinCategory, BlockCuttingCategory, CrushingCategory, DeployingCategory, ItemDrainCategory, MechanicalCraftingCategory, MillingCategory, MysteriousItemConversionCategory, PolishingCategory, PressingCategory, ProcessingViaFanCategory, SawingCategory, SequencedAssemblyCategory, SpoutCategory

public abstract class CreateRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>> extends Object implements mezz.jei.api.recipe.category.IRecipeCategory<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected String
     
    final List<Supplier<? extends net.minecraft.world.item.ItemStack>>
     
    final List<Supplier<List<? extends net.minecraft.world.item.crafting.Recipe<?>>>>
     
    protected net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreateRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon, mezz.jei.api.gui.drawable.IDrawable background)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs)
     
    static void
    addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs, int index)
     
    static void
    addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results)
     
    static void
    addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results, int startIndex)
     
    static mezz.jei.api.gui.drawable.IDrawable
    doubleItemIcon(net.minecraft.world.level.ItemLike item1, net.minecraft.world.level.ItemLike item2)
     
    static mezz.jei.api.gui.drawable.IDrawable
    emptyBackground(int width, int height)
     
    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.
    getRenderedSlot(net.minecraft.world.item.crafting.Recipe<?> recipe, int index)
     
    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.
    static mezz.jei.api.gui.drawable.IDrawable
    itemIcon(net.minecraft.world.level.ItemLike item)
     
    void
     
    static List<net.minecraftforge.fluids.FluidStack>
    withImprovedVisibility(List<net.minecraftforge.fluids.FluidStack> stacks)
     
    static net.minecraftforge.fluids.FluidStack
    withImprovedVisibility(net.minecraftforge.fluids.FluidStack stack)
     

    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, getRecipeClass, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe
  • Field Details

    • recipes

      public final List<Supplier<List<? extends net.minecraft.world.item.crafting.Recipe<?>>>> recipes
    • recipeCatalysts

      public final List<Supplier<? extends net.minecraft.world.item.ItemStack>> recipeCatalysts
    • uid

      protected net.minecraft.resources.ResourceLocation uid
    • name

      protected String name
  • Constructor Details

    • CreateRecipeCategory

      public CreateRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon, mezz.jei.api.gui.drawable.IDrawable background)
  • Method Details

    • setCategoryId

      public void setCategoryId(String name)
    • 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 extends net.minecraft.world.item.crafting.Recipe<?>>
      See Also:
      • for vanilla examples
    • 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 extends net.minecraft.world.item.crafting.Recipe<?>>
    • 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 extends net.minecraft.world.item.crafting.Recipe<?>>
    • 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(Object) to create a drawable from an ingredient.
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
      Returns:
      icon to draw on the category tab, max size is 16x16 pixels.
    • getRenderedSlot

      public static AllGuiTextures getRenderedSlot(net.minecraft.world.item.crafting.Recipe<?> recipe, int index)
    • emptyBackground

      public static mezz.jei.api.gui.drawable.IDrawable emptyBackground(int width, int height)
    • doubleItemIcon

      public static mezz.jei.api.gui.drawable.IDrawable doubleItemIcon(net.minecraft.world.level.ItemLike item1, net.minecraft.world.level.ItemLike item2)
    • itemIcon

      public static mezz.jei.api.gui.drawable.IDrawable itemIcon(net.minecraft.world.level.ItemLike item)
    • addStochasticTooltip

      public static void addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results)
    • addStochasticTooltip

      public static void addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results, int startIndex)
    • withImprovedVisibility

      public static List<net.minecraftforge.fluids.FluidStack> withImprovedVisibility(List<net.minecraftforge.fluids.FluidStack> stacks)
    • withImprovedVisibility

      public static net.minecraftforge.fluids.FluidStack withImprovedVisibility(net.minecraftforge.fluids.FluidStack stack)
    • addFluidTooltip

      public static void addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs)
    • addFluidTooltip

      public static void addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs, int index)