Package com.hbm_m.compat.jei
Class JeiGenericRecipeCategory<R>
java.lang.Object
com.hbm_m.compat.jei.JeiGenericRecipeCategory<R>
- All Implemented Interfaces:
mezz.jei.api.recipe.category.IRecipeCategory<R>
- Direct Known Subclasses:
AssemblerJeiCategory,ChemicalPlantJeiCategory
public abstract class JeiGenericRecipeCategory<R>
extends Object
implements mezz.jei.api.recipe.category.IRecipeCategory<R>
JEI port of
NEIGenericRecipeHandler: shared gui_nei.png background and 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
ConstructorsModifierConstructorDescriptionprotectedJeiGenericRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, net.minecraft.world.item.ItemStack[] machines) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidaddBlueprintSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int machineXOffset) protected abstract voidaddInputSlots(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int inputXOffset) protected mezz.jei.api.gui.builder.IRecipeSlotBuilderaddItemSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, mezz.jei.api.recipe.RecipeIngredientRole role, int x, int y) NEI draws 18x18 item slot frames at (x - 1, y - 1).protected abstract voidaddOutputSlots(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int outputXOffset) protected mezz.jei.api.gui.builder.IRecipeSlotBuilderaddUnframedSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, mezz.jei.api.recipe.RecipeIngredientRole role, int x, int y) Machine / blueprint icons sit inside the tall NEI machine frame, not in item slot frames.voiddraw(R recipe, mezz.jei.api.gui.ingredient.IRecipeSlotsView recipeSlotsView, net.minecraft.client.gui.GuiGraphics guiGraphics, double mouseX, double mouseY) protected voiddrawRecipeExtras(R recipe, net.minecraft.client.gui.GuiGraphics graphics) mezz.jei.api.gui.drawable.IDrawableintmezz.jei.api.gui.drawable.IDrawablegetIcon()protected abstract intgetInputCount(R recipe) protected intgetInputXOffset(R recipe, int inputCount) protected net.minecraft.world.item.ItemStack[]getMachines(R recipe) protected intgetMachineXOffset(R recipe) protected abstract intgetOutputCount(R recipe) protected intgetOutputXOffset(R recipe, int outputCount) intgetWidth()protected abstract booleanhasBlueprintTemplate(R recipe) 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
-
JeiGenericRecipeCategory
protected JeiGenericRecipeCategory(mezz.jei.api.helpers.IGuiHelper guiHelper, net.minecraft.world.item.ItemStack[] machines)
-
-
Method Details
-
getInputCount
-
getOutputCount
-
hasBlueprintTemplate
-
addInputSlots
protected abstract void addInputSlots(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int inputXOffset) -
addOutputSlots
protected abstract void addOutputSlots(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int outputXOffset) -
addBlueprintSlot
protected abstract void addBlueprintSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, R recipe, int machineXOffset) -
getInputXOffset
-
getOutputXOffset
-
getMachineXOffset
-
getMachines
-
drawRecipeExtras
-
addItemSlot
protected mezz.jei.api.gui.builder.IRecipeSlotBuilder addItemSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, mezz.jei.api.recipe.RecipeIngredientRole role, int x, int y) NEI draws 18x18 item slot frames at (x - 1, y - 1). -
addUnframedSlot
protected mezz.jei.api.gui.builder.IRecipeSlotBuilder addUnframedSlot(mezz.jei.api.gui.builder.IRecipeLayoutBuilder builder, mezz.jei.api.recipe.RecipeIngredientRole role, int x, int y) Machine / blueprint icons sit inside the tall NEI machine frame, not in item slot frames. -
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>
-