Class VectorBinaryFunctionalGenerator
java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorBinaryFunctionalGenerator
- All Implemented Interfaces:
Provider,Refreshable
- Direct Known Subclasses:
VectorGeneratorCross,VectorGeneratorSub
An abstract class to do many of the operations needed for a
VectorGenerator when operating on
exactly 2 ordered VectorProviders.-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.providers.generator.vector.VectorGenerator
VectorGenerator.VectorGeneratorType -
Constructor Summary
ConstructorsConstructorDescriptionVectorBinaryFunctionalGenerator(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this generator from a ConfigurationSection, logging errors in the given settingsVectorBinaryFunctionalGenerator(org.bukkit.util.Vector a, org.bukkit.util.Vector b) Clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteToConfig(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, refreshInternal
-
Constructor Details
-
VectorBinaryFunctionalGenerator
Clone constructor.- Parameters:
clone- The object to clone from.
-
VectorBinaryFunctionalGenerator
- Parameters:
a- The first vector/provider to operate on.b- The second vector/provider to operate on.
-
VectorBinaryFunctionalGenerator
public VectorBinaryFunctionalGenerator(org.bukkit.util.Vector a, org.bukkit.util.Vector b) - Parameters:
a- The first vector/provider to operate on.b- The second vector/provider to operate on.
-
VectorBinaryFunctionalGenerator
public VectorBinaryFunctionalGenerator(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 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
-