Class BinaryFunctionalGenerator
java.lang.Object
wbs.utils.util.providers.generator.num.DoubleGenerator
wbs.utils.util.providers.generator.num.BinaryFunctionalGenerator
- All Implemented Interfaces:
Provider,Refreshable
- Direct Known Subclasses:
DivisionGenerator,ModuloGenerator,SubtractionGenerator
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBinaryFunctionalGenerator(double a, double b) BinaryFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this generator from a ConfigurationSection, logging errors in the given settingsClone constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteToConfig(org.bukkit.configuration.ConfigurationSection section, String path) Save this provider in a config (that can often by read by its constructor)Methods inherited from class wbs.utils.util.providers.generator.num.DoubleGenerator
clone, getNewValue, getValue, refresh, refreshInternal
-
Field Details
-
a
-
b
-
-
Constructor Details
-
BinaryFunctionalGenerator
Clone constructor.- Parameters:
clone- The object to clone from.
-
BinaryFunctionalGenerator
-
BinaryFunctionalGenerator
public BinaryFunctionalGenerator(double a, double b) -
BinaryFunctionalGenerator
public BinaryFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this generator from a ConfigurationSection, logging errors in the given settings- Parameters:
section- The section where this generator is definedsettings- The settings to log errors againstdirectory- The path taken through the config to get to this point, for logging purposes
-
-
Method Details
-
writeToConfig
Description copied from interface:ProviderSave this provider in a config (that can often by read by its constructor)- Specified by:
writeToConfigin interfaceProvider- Specified by:
writeToConfigin classDoubleGenerator- Parameters:
section- The section to write topath- The field/path inside the given section
-