Class JeiUniversalRecipeCategory<R>

java.lang.Object
com.hbm_m.compat.jei.JeiUniversalRecipeCategory<R>
All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<R>
Direct Known Subclasses:
CentrifugeJeiCategory

public abstract class JeiUniversalRecipeCategory<R> extends Object implements mezz.jei.api.recipe.category.IRecipeCategory<R>
JEI port of NEIUniversalHandler: shared gui_nei.png background and universal slot layout.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final mezz.jei.api.gui.drawable.IDrawable
     
    protected final mezz.jei.api.helpers.IGuiHelper
     
    protected final mezz.jei.api.gui.drawable.IDrawable
     
    protected final mezz.jei.api.gui.drawable.IDrawable
     
    protected final net.minecraft.world.item.ItemStack[]
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    JeiUniversalRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, net.minecraft.world.item.ItemStack[] machines)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(R recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY)
     
    mezz.jei.api.gui.drawable.IDrawable
     
    int
     
    mezz.jei.api.gui.drawable.IDrawable
     
    protected abstract int
    getInputCount(R recipe)
     
    protected abstract List<List<net.minecraft.world.item.ItemStack>>
    getInputStacks(R recipe)
     
    protected net.minecraft.world.item.ItemStack[]
    getMachines(R recipe)
     
    protected abstract int
    getOutputCount(R recipe)
     
    protected abstract List<net.minecraft.world.item.ItemStack>
     
    int
     
    void
    setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R 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, getRecipeType, getRegistryName, getTitle, getTooltip, getTooltipStrings, handleInput, isHandled, onDisplayedIngredientsUpdate
  • Field Details

    • guiHelper

      protected final mezz.jei.api.helpers.IGuiHelper guiHelper
    • background

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

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

      protected final mezz.jei.api.gui.drawable.IDrawable itemSlotBackground
    • machines

      protected final net.minecraft.world.item.ItemStack[] machines
  • Constructor Details

    • JeiUniversalRecipeCategory

      protected JeiUniversalRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, net.minecraft.world.item.ItemStack[] machines)
  • Method Details

    • getInputCount

      protected abstract int getInputCount(R recipe)
    • getOutputCount

      protected abstract int getOutputCount(R recipe)
    • getInputStacks

      protected abstract List<List<net.minecraft.world.item.ItemStack>> getInputStacks(R recipe)
    • getOutputStacks

      protected abstract List<net.minecraft.world.item.ItemStack> getOutputStacks(R recipe)
    • getMachines

      protected net.minecraft.world.item.ItemStack[] getMachines(R recipe)
    • getBackground

      public mezz.jei.api.gui.drawable.IDrawable getBackground()
      Specified by:
      getBackground in interface mezz.jei.api.recipe.category.IRecipeCategory<R>
    • getIcon

      public mezz.jei.api.gui.drawable.IDrawable getIcon()
      Specified by:
      getIcon in interface mezz.jei.api.recipe.category.IRecipeCategory<R>
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface mezz.jei.api.recipe.category.IRecipeCategory<R>
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface mezz.jei.api.recipe.category.IRecipeCategory<R>
    • setRecipe

      public void setRecipe(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, mezz.jei.api.recipe.IFocusGroup focuses)
      Specified by:
      setRecipe in interface mezz.jei.api.recipe.category.IRecipeCategory<R>
    • draw

      public void draw(R recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY)
      Specified by:
      draw in interface mezz.jei.api.recipe.category.IRecipeCategory<R>