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<net.minecraft.world.item.crafting.RecipeHolder<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<net.minecraft.world.item.crafting.RecipeHolder<T>>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    CreateRecipeCategory.Builder<T extends net.minecraft.world.item.crafting.Recipe<? extends net.minecraft.world.item.crafting.RecipeInput>>
     
    static interface 
    CreateRecipeCategory.Factory<T extends net.minecraft.world.item.crafting.Recipe<?>>
     
    static final record 
    CreateRecipeCategory.Info<T extends net.minecraft.world.item.crafting.Recipe<?>>
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final mezz.jei.api.gui.drawable.IDrawable
     
    protected final mezz.jei.api.gui.drawable.IDrawable
     
    protected final net.minecraft.network.chat.Component
     
    protected final mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static mezz.jei.api.gui.builder.IRecipeSlotBuilder
    addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, FluidIngredient ingredient)
     
    static mezz.jei.api.gui.builder.IRecipeSlotBuilder
    addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.FluidStack stack)
     
    static mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallback
     
    protected static mezz.jei.api.gui.drawable.IDrawable
     
    void
    draw(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY)
     
    protected abstract void
    draw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY)
     
    mezz.jei.api.gui.drawable.IDrawable
     
    mezz.jei.api.gui.drawable.IDrawable
     
    @NotNull mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<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
     
    static net.minecraft.world.item.ItemStack
    getResultItem(net.minecraft.world.item.crafting.Recipe<?> recipe)
     
    net.minecraft.network.chat.Component
     
    List<net.minecraft.network.chat.Component>
    getTooltipStrings(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
     
    protected List<net.minecraft.network.chat.Component>
    getTooltipStrings(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
     
    void
    registerCatalysts(mezz.jei.api.registration.IRecipeCatalystRegistration registration)
     
    void
    registerRecipes(mezz.jei.api.registration.IRecipeRegistration registration)
     
    void
    setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.recipe.IFocusGroup focuses)
     
    protected abstract void
    setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses)
     

    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

    createRecipeExtras, createRecipeExtras, getCodec, getHeight, getRegistryName, getTooltip, getWidth, handleInput, isHandled, needsRecipeBorder, onDisplayedIngredientsUpdate
  • Field Details

    • type

      protected final mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T extends net.minecraft.world.item.crafting.Recipe<?>>> type
    • title

      protected final net.minecraft.network.chat.Component title
    • background

      protected final mezz.jei.api.gui.drawable.IDrawable background
    • icon

      protected final mezz.jei.api.gui.drawable.IDrawable icon
  • Constructor Details

  • Method Details

    • getRecipeType

      @NotNull public @NotNull mezz.jei.api.recipe.RecipeType<net.minecraft.world.item.crafting.RecipeHolder<T>> getRecipeType()
      Specified by:
      getRecipeType in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
    • getTitle

      public net.minecraft.network.chat.Component getTitle()
      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()
      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()
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
    • setRecipe

      public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.recipe.IFocusGroup focuses)
      Specified by:
      setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
    • draw

      public void draw(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
    • getTooltipStrings

      public List<net.minecraft.network.chat.Component> getTooltipStrings(net.minecraft.world.item.crafting.RecipeHolder<T> holder, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
      Specified by:
      getTooltipStrings in interface mezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
    • setRecipe

      protected abstract void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, T recipe, mezz.jei.api.recipe.IFocusGroup focuses)
    • draw

      protected abstract void draw(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics gui, double mouseX, double mouseY)
    • getTooltipStrings

      protected List<net.minecraft.network.chat.Component> getTooltipStrings(T recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, double mouseX, double mouseY)
    • registerRecipes

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

      public void registerCatalysts(mezz.jei.api.registration.IRecipeCatalystRegistration 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)
    • getResultItem

      public static net.minecraft.world.item.ItemStack getResultItem(net.minecraft.world.item.crafting.Recipe<?> recipe)
    • addStochasticTooltip

      public static mezz.jei.api.gui.ingredient.IRecipeSlotRichTooltipCallback addStochasticTooltip(ProcessingOutput output)
    • addFluidSlot

      public static mezz.jei.api.gui.builder.IRecipeSlotBuilder addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, FluidIngredient ingredient)
    • addFluidSlot

      public static mezz.jei.api.gui.builder.IRecipeSlotBuilder addFluidSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, int x, int y, net.neoforged.neoforge.fluids.FluidStack stack)
    • asDrawable

      protected static mezz.jei.api.gui.drawable.IDrawable asDrawable(AllGuiTextures texture)