Class VectorFunctionalGenerator
java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorFunctionalGenerator
- All Implemented Interfaces:
Provider,Refreshable
- Direct Known Subclasses:
VectorGeneratorAdd,VectorGeneratorMul
A type of VectorGenerator that takes some number of VectorProviders and
operates on them to determine the value
-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.providers.generator.vector.VectorGenerator
VectorGenerator.VectorGeneratorType -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionVectorFunctionalGenerator(List<org.bukkit.util.Vector> args) VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this type of generator from a given configVectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs) Create this type of generator from a given configVectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs, int maxArgs) Create this type of generator from a given configVectorFunctionalGenerator(org.bukkit.util.Vector... args) Clone constructor.VectorFunctionalGenerator(VectorProvider... args) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal voidwriteToConfig(org.bukkit.configuration.ConfigurationSection section, String path) Save this generator in a config that can be read by its constructorMethods inherited from class wbs.utils.util.providers.generator.vector.VectorGenerator
buildGenerator, clone, getNewValue, getValue, refresh
-
Field Details
-
args
-
-
Constructor Details
-
VectorFunctionalGenerator
public VectorFunctionalGenerator() -
VectorFunctionalGenerator
Clone constructor.- Parameters:
clone- The object to clone from.
-
VectorFunctionalGenerator
-
VectorFunctionalGenerator
-
VectorFunctionalGenerator
public VectorFunctionalGenerator(org.bukkit.util.Vector... args) -
VectorFunctionalGenerator
public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this type of generator from a given config- Parameters:
section- The section to read fromsettings- The settings to log errors againstdirectory- The path taken through the section to reach this provider, for logging purposes
-
VectorFunctionalGenerator
public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs) Create this type of generator from a given config- Parameters:
section- The section to read fromsettings- The settings to log errors againstdirectory- The path taken through the section to reach this provider, for logging purposesminArgs- The minimum number of arguments needed for this generator to work
-
VectorFunctionalGenerator
public VectorFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory, int minArgs, int maxArgs) Create this type of generator from a given config- Parameters:
section- The section to read fromsettings- The settings to log errors againstdirectory- The path taken through the section to reach this provider, for logging purposesminArgs- The minimum number of arguments needed for this generator to workmaxArgs- The maximum number of arguments this generator is defined on
-
-
Method Details
-
refreshInternal
public final void refreshInternal()- Overrides:
refreshInternalin classVectorGenerator
-
writeToConfig
Description copied from class:VectorGeneratorSave this generator in a config that can be read by its constructor- Specified by:
writeToConfigin interfaceProvider- Specified by:
writeToConfigin classVectorGenerator- Parameters:
section- The section to write topath- The field/path inside the given section
-