public class ExtendableRecipeCategoryHelper<T,W extends IRecipeCategoryExtension>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ExtendableRecipeCategoryHelper.RecipeHandler<T,W extends IRecipeCategoryExtension> |
Constructor and Description |
---|
ExtendableRecipeCategoryHelper(java.lang.Class<? extends T> expectedRecipeClass) |
Modifier and Type | Method and Description |
---|---|
<R extends T> |
addRecipeExtensionFactory(java.lang.Class<? extends R> recipeClass,
java.util.function.Predicate<R> extensionFilter,
java.util.function.Function<R,? extends W> recipeExtensionFactory) |
<R extends T> |
getRecipeExtension(R recipe) |
<R extends T> |
getRecipeExtensionOrNull(R recipe) |
public ExtendableRecipeCategoryHelper(java.lang.Class<? extends T> expectedRecipeClass)