public interface IExtendableRecipeCategory<T,W extends IRecipeCategoryExtension> extends IRecipeCategory<T>
Modifier and Type | Method and Description |
---|---|
<R extends T> |
addCategoryExtension(java.lang.Class<? extends R> recipeClass,
java.util.function.Function<R,? extends W> extensionFactory) |
<R extends T> |
addCategoryExtension(java.lang.Class<? extends R> recipeClass,
java.util.function.Predicate<R> extensionFilter,
java.util.function.Function<R,? extends W> extensionFactory) |
draw, getBackground, getIcon, getRecipeClass, getTitle, getTitleAsTextComponent, getTooltipStrings, getUid, handleClick, isHandled, setIngredients, setRecipe
<R extends T> void addCategoryExtension(java.lang.Class<? extends R> recipeClass, java.util.function.Function<R,? extends W> extensionFactory)
recipeClass
- the class of recipes to handleextensionFactory
- a factory that can turn recipes into recipe extensions<R extends T> void addCategoryExtension(java.lang.Class<? extends R> recipeClass, java.util.function.Predicate<R> extensionFilter, java.util.function.Function<R,? extends W> extensionFactory)
recipeClass
- the class of recipes to handleextensionFilter
- a filter that returns true for instances of the recipe that can be handled by the extensionFactoryextensionFactory
- a factory that can turn recipes into recipe extensions