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,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<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 mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallbackstatic mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallbackaddFluidTooltip(int mbAmount) static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallbackaddStochasticTooltip(ProcessingOutput output) 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.Returns the class of recipes that this recipe category handles.@NotNull mezz.jei.api.recipe.RecipeType<T>static mezz.jei.api.gui.drawable.IDrawablestatic mezz.jei.api.gui.drawable.IDrawablegetRenderedSlot(float chance) static mezz.jei.api.gui.drawable.IDrawablegetRenderedSlot(ProcessingOutput output) 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) voidregisterRecipes(mezz.jei.api.registration.IRecipeRegistration registration) 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, draw, getRegistryName, getTooltipStrings, getTooltipStrings, handleClick, handleInput, isHandled, setIngredients, setRecipe, setRecipe, setRecipe
-
Field Details
-
recipes
-
recipeCatalysts
-
name
-
type
protected mezz.jei.api.recipe.RecipeType<T extends net.minecraft.world.item.crafting.Recipe<?>> type
-
-
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<?>>
-
getRecipeClass
Description copied from interface:mezz.jei.api.recipe.category.IRecipeCategoryReturns the class of recipes that this recipe category handles.- Specified by:
getRecipeClassin interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>
-
getRecipeType
- Specified by:
getRecipeTypein interfacemezz.jei.api.recipe.category.IRecipeCategory<T extends net.minecraft.world.item.crafting.Recipe<?>>- Returns:
- the type of recipe that this category handles.
-
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(IIngredientType, 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.
-
registerRecipes
public void registerRecipes(mezz.jei.api.registration.IRecipeRegistration registration) -
getRenderedSlot
public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot() -
getRenderedSlot
-
getRenderedSlot
public static mezz.jei.api.gui.drawable.IDrawable getRenderedSlot(float chance) -
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 mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addStochasticTooltip(ProcessingOutput output) -
withImprovedVisibility
-
withImprovedVisibility
public static net.minecraftforge.fluids.FluidStack withImprovedVisibility(net.minecraftforge.fluids.FluidStack stack) -
addFluidTooltip
public static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addFluidTooltip() -
addFluidTooltip
public static mezz.jei.api.gui.ingredient.IRecipeSlotTooltipCallback addFluidTooltip(int mbAmount)
-