Package com.minecolonies.api.crafting
Interface IRecipeStorageFactory
- All Superinterfaces:
IFactory<IToken<?>,RecipeStorage>
- All Known Implementing Classes:
RecipeStorageFactory
Interface for the IRecipeStorageFactory which is responsible for creating and maintaining RecipeStorage objects.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull RecipeStoragegetNewInstance(@NotNull IFactoryController factoryController, @NotNull IToken<?> token, @NotNull Object... context) Method to get a new instance of the output given the input and additional context data.Methods inherited from interface com.minecolonies.api.colony.requestsystem.factory.IFactory
deserialize, deserialize, getFactoryInputType, getFactoryOutputType, getSerializationId, serialize, serialize
-
Method Details
-
getNewInstance
@NotNull default @NotNull RecipeStorage getNewInstance(@NotNull @NotNull IFactoryController factoryController, @NotNull @NotNull IToken<?> token, @NotNull @NotNull Object... context) Description copied from interface:IFactoryMethod to get a new instance of the output given the input and additional context data.- Specified by:
getNewInstancein interfaceIFactory<IToken<?>,RecipeStorage> - Parameters:
factoryController- The controller calling this factory method.token- The input to build a new output for.context- The context of the request.- Returns:
- The new output instance for a given input.
-