public interface IRecipeCategory<T extends IRecipeWrapper>
setRecipe(IRecipeLayout, IRecipeWrapper, IIngredients)
.
Also draws elements that are common to all recipes in the category like the background.BlankRecipeCategory
Modifier and Type | Method and Description |
---|---|
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,
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)
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.