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,ItemDrainCategory,MechanicalCraftingCategory,MillingCategory,MysteriousItemConversionCategory,PolishingCategory,PressingCategory,ProcessingViaFanCategory,SawingCategory,SequencedAssemblyCategory,SpoutCategory
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 -
Constructor Summary
ConstructorsConstructorDescriptionCreateRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon, mezz.jei.api.gui.drawable.IDrawable background) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs) static voidaddFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs, int index) static voidaddStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results) static voidaddStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results, int startIndex) static mezz.jei.api.gui.drawable.IDrawabledoubleItemIcon(net.minecraft.world.level.ItemLike item1, net.minecraft.world.level.ItemLike item2) static mezz.jei.api.gui.drawable.IDrawableemptyBackground(int width, int height) mezz.jei.api.gui.drawable.IDrawableReturns the drawable background for a single recipe in this category.mezz.jei.api.gui.drawable.IDrawablegetIcon()Icon for the category tab.static AllGuiTexturesgetRenderedSlot(net.minecraft.world.item.crafting.Recipe<?> recipe, int index) net.minecraft.network.chat.ComponentgetTitle()Returns a text component representing the name of this recipe type.net.minecraft.resources.ResourceLocationgetUid()Returns a unique ID for this recipe category.static mezz.jei.api.gui.drawable.IDrawableitemIcon(net.minecraft.world.level.ItemLike item) voidsetCategoryId(String name) static List<net.minecraftforge.fluids.FluidStack>withImprovedVisibility(List<net.minecraftforge.fluids.FluidStack> stacks) static net.minecraftforge.fluids.FluidStackwithImprovedVisibility(net.minecraftforge.fluids.FluidStack stack) 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
draw, getRecipeClass, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe
-
Field Details
-
recipes
-
recipeCatalysts
-
uid
protected net.minecraft.resources.ResourceLocation uid -
name
-
-
Constructor Details
-
CreateRecipeCategory
public CreateRecipeCategory(mezz.jei.api.gui.drawable.IDrawable icon, mezz.jei.api.gui.drawable.IDrawable background)
-
-
Method Details
-
setCategoryId
-
getUid
public net.minecraft.resources.ResourceLocation getUid()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a unique ID for this recipe category. Referenced from recipes to identify which recipe category they belong to.- Specified by:
getUidin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>- See Also:
-
for vanilla examples
-
getTitle
public net.minecraft.network.chat.Component getTitle()Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns a text component representing the name of this recipe type. Drawn at the top of the recipe GUI pages for this category.- Specified by:
getTitlein interfacemezz.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.IRecipeCategoryReturns 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:
getBackgroundin interfacemezz.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.IRecipeCategoryIcon for the category tab. You can useIGuiHelper.createDrawableIngredient(Object)to create a drawable from an ingredient.- Specified by:
getIconin interfacemezz.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.
-
getRenderedSlot
public static AllGuiTextures getRenderedSlot(net.minecraft.world.item.crafting.Recipe<?> recipe, int index) -
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 void addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results) -
addStochasticTooltip
public static void addStochasticTooltip(mezz.jei.api.gui.ingredient.IGuiItemStackGroup itemStacks, List<ProcessingOutput> results, int startIndex) -
withImprovedVisibility
-
withImprovedVisibility
public static net.minecraftforge.fluids.FluidStack withImprovedVisibility(net.minecraftforge.fluids.FluidStack stack) -
addFluidTooltip
public static void addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs) -
addFluidTooltip
public static void addFluidTooltip(mezz.jei.api.gui.ingredient.IGuiFluidStackGroup fluidStacks, List<FluidIngredient> inputs, List<net.minecraftforge.fluids.FluidStack> outputs, int index)
-