Class DivisionGenerator
java.lang.Object
wbs.utils.util.providers.generator.num.DoubleGenerator
wbs.utils.util.providers.generator.num.BinaryFunctionalGenerator
wbs.utils.util.providers.generator.num.DivisionGenerator
- All Implemented Interfaces:
Provider,Refreshable
A functional generator that takes exactly two NumProviders and divides
the first by the second
-
Field Summary
Fields inherited from class wbs.utils.util.providers.generator.num.BinaryFunctionalGenerator
a, b -
Constructor Summary
ConstructorsConstructorDescriptionDivisionGenerator(double a, double b) DivisionGenerator(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 TypeMethodDescriptionclone()protected doubleGenerate a new value to override the current oneMethods inherited from class wbs.utils.util.providers.generator.num.BinaryFunctionalGenerator
writeToConfigMethods inherited from class wbs.utils.util.providers.generator.num.DoubleGenerator
getValue, refresh, refreshInternal
-
Constructor Details
-
DivisionGenerator
Clone constructor.- Parameters:
clone- The object to clone from.
-
DivisionGenerator
- Parameters:
a- The first number/provider to operate on.b- The second number/provider to operate on.
-
DivisionGenerator
public DivisionGenerator(double a, double b) - Parameters:
a- The first number/provider to operate on.b- The second number/provider to operate on.
-
DivisionGenerator
public DivisionGenerator(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
-
getNewValue
protected double getNewValue()Description copied from class:DoubleGeneratorGenerate a new value to override the current one- Specified by:
getNewValuein classDoubleGenerator- Returns:
- The new value
-
clone
- Specified by:
clonein classDoubleGenerator
-