Package com.hbm_m.compat.jei
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
FieldsModifier and TypeFieldDescriptionprotected final mezz.jei.api.gui.drawable.IDrawableprotected final mezz.jei.api.helpers.IGuiHelperprotected final mezz.jei.api.gui.drawable.IDrawableprotected final mezz.jei.api.gui.drawable.IDrawableprotected final net.minecraft.world.item.ItemStack[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJeiUniversalRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, net.minecraft.world.item.ItemStack[] machines) -
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(R recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY) mezz.jei.api.gui.drawable.IDrawableintmezz.jei.api.gui.drawable.IDrawablegetIcon()protected abstract intgetInputCount(R recipe) getInputStacks(R recipe) protected net.minecraft.world.item.ItemStack[]getMachines(R recipe) protected abstract intgetOutputCount(R recipe) protected abstract List<net.minecraft.world.item.ItemStack>getOutputStacks(R recipe) intgetWidth()voidsetRecipe(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, waitMethods 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
-
getOutputCount
-
getInputStacks
-
getOutputStacks
-
getMachines
-
getBackground
public mezz.jei.api.gui.drawable.IDrawable getBackground()- Specified by:
getBackgroundin interfacemezz.jei.api.recipe.category.IRecipeCategory<R>
-
getIcon
public mezz.jei.api.gui.drawable.IDrawable getIcon()- Specified by:
getIconin interfacemezz.jei.api.recipe.category.IRecipeCategory<R>
-
getWidth
public int getWidth()- Specified by:
getWidthin interfacemezz.jei.api.recipe.category.IRecipeCategory<R>
-
getHeight
public int getHeight()- Specified by:
getHeightin interfacemezz.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:
setRecipein interfacemezz.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:
drawin interfacemezz.jei.api.recipe.category.IRecipeCategory<R>
-