public interface IRecipeCategory<T extends IRecipeWrapper>
setRecipe(IRecipeLayout, IRecipeWrapper)
.
Also draws elements that are common to all recipes in the category like the background.BlankRecipeCategory
Modifier and Type | Method and Description |
---|---|
void |
drawAnimations(net.minecraft.client.Minecraft minecraft)
Deprecated.
since 3.13.1. Move animations into
drawExtras(Minecraft) ,
these are being combined because nobody uses the config option to disable animations. |
void |
drawExtras(net.minecraft.client.Minecraft minecraft)
Draw any extra elements that might be necessary, icons or extra slots.
|
IDrawable |
getBackground()
Returns the drawable background for a single recipe in this category.
|
IDrawable |
getIcon()
Optional icon for the category tab.
|
java.lang.String |
getTitle()
Returns the localized name for this recipe type.
|
java.util.List<java.lang.String> |
getTooltipStrings(int mouseX,
int mouseY)
Get the tooltip for whatever's under the mouse.
|
java.lang.String |
getUid()
Returns a unique ID for this recipe category.
|
void |
setRecipe(IRecipeLayout recipeLayout,
T recipeWrapper)
Deprecated.
since JEI 3.11.0. use
setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients) |
void |
setRecipe(IRecipeLayout recipeLayout,
T recipeWrapper,
IIngredients ingredients)
|
java.lang.String getUid()
java.lang.String getTitle()
IDrawable getBackground()
@Nullable IDrawable getIcon()
IModRegistry.addRecipeCategoryCraftingItem(ItemStack, String...)
void drawExtras(net.minecraft.client.Minecraft minecraft)
@Deprecated void drawAnimations(net.minecraft.client.Minecraft minecraft)
drawExtras(Minecraft)
,
these are being combined because nobody uses the config option to disable animations.drawExtras(Minecraft)
but these can be disabled in the config.@Deprecated void setRecipe(IRecipeLayout recipeLayout, T recipeWrapper)
setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients)
IRecipeLayout
properties from the IRecipeWrapper
.void setRecipe(IRecipeLayout recipeLayout, T recipeWrapper, IIngredients ingredients)
recipeLayout
- the layout that needs its properties set.recipeWrapper
- the recipeWrapper, for extra information.ingredients
- the ingredients, already set by the recipeWrapperjava.util.List<java.lang.String> getTooltipStrings(int mouseX, int mouseY)
IGuiIngredientGroup.addTooltipCallback(ITooltipCallback)
To add tooltips for a recipe wrapper, see IRecipeWrapper.getTooltipStrings(int, int)
mouseX
- the X position of the mouse, relative to the recipe.mouseY
- the Y position of the mouse, relative to the recipe.