Interface INeoForgeIngredientConverter<STACK,INGREDIENT>
- All Known Implementing Classes:
ItemIngredientConverter
public interface INeoForgeIngredientConverter<STACK,INGREDIENT>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionIAdvancedIngredient<? super STACK> convertToAdvancedIngredient(INGREDIENT ingredient) convertToNeoForgeIngredient(IAdvancedIngredient<? super STACK> ingredient) Attempt to convert theIAdvancedIngredient(possiblycompound) to a Minecraft/NeoForge simplified equivalent.
-
Method Details
-
convertToNeoForgeIngredient
INGREDIENT convertToNeoForgeIngredient(IAdvancedIngredient<? super STACK> ingredient) throws INeoForgeIngredientConverter.IngredientConversionException Attempt to convert theIAdvancedIngredient(possiblycompound) to a Minecraft/NeoForge simplified equivalent.- Parameters:
ingredient- FullysimplifiedIAdvancedIngredient- Returns:
- Non-
nullingredient - Throws:
INeoForgeIngredientConverter.IngredientConversionException- If this is not possible (e.g. because the Ingredient involves more complex Ingredients that have no direct NeoForge equivalent)
-
convertToAdvancedIngredient
IAdvancedIngredient<? super STACK> convertToAdvancedIngredient(INGREDIENT ingredient) throws INeoForgeIngredientConverter.IngredientConversionException
-