Interface IIntSettingFactory<T extends ISetting>
- All Superinterfaces:
IFactory<FactoryVoidInput,T>
- All Known Implementing Classes:
SettingsFactories.AbstractIntSettingFactory,SettingsFactories.DynamicTreesSettingFactory,SettingsFactories.IntSettingFactory
Interface for the integer settings factory which is responsible for creating and maintaining int setting objects.
-
Method Summary
Modifier and TypeMethodDescriptiongetNewInstance(int def, int current) default TgetNewInstance(@NotNull IFactoryController factoryController, @NotNull FactoryVoidInput 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 T getNewInstance(@NotNull @NotNull IFactoryController factoryController, @NotNull @NotNull FactoryVoidInput 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<FactoryVoidInput,T extends ISetting> - 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.
-
getNewInstance
-