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, ItemApplicationCategory, ItemDrainCategory, MechanicalCraftingCategory, MillingCategory, MysteriousItemConversionCategory, PolishingCategory, PressingCategory, ProcessingViaFanCategory, SawingCategory, SequencedAssemblyCategory, SpoutCategory

@ParametersAreNonnullByDefault 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<T>>>
     
    protected mezz.jei.api.recipe.RecipeType<T>
     
  • 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 mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
     
    static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
    addFluidTooltip(int mbAmount)
     
    static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback
     
    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.
    abstract Class<? extends T>
    Returns the class of recipes that this recipe category handles.
    @NotNull mezz.jei.api.recipe.RecipeType<T>
     
    static mezz.jei.api.gui.drawable.IDrawable
     
    static mezz.jei.api.gui.drawable.IDrawable
    getRenderedSlot(float chance)
     
    static mezz.jei.api.gui.drawable.IDrawable
     
    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
    registerRecipes(mezz.jei.api.registration.IRecipeRegistration registration)
     
    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, draw, getRegistryName, getTooltipStrings, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe, setRecipe
  • Field Details

    • recipes

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

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

      protected String name
    • type

      protected mezz.jei.api.recipe.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>> type
  • 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<?>>
    • getRecipeClass

      public abstract 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 extends net.minecraft.world.item.crafting.Recipe<?>>
    • getRecipeType

      @NotNull public @NotNull mezz.jei.api.recipe.RecipeType<T> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
      Returns:
      the type of recipe that this category handles.
    • 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(IIngredientType, 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.
    • registerRecipes

      public void registerRecipes(mezz.jei.api.registration.IRecipeRegistration registration)
    • getRenderedSlot

      public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot()
    • getRenderedSlot

      public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot(ProcessingOutput output)
    • getRenderedSlot

      public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot(float chance)
    • 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 mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addStochasticTooltip(ProcessingOutput output)
    • 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 mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addFluidTooltip()
    • addFluidTooltip

      public static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addFluidTooltip(int mbAmount)