Class VectorGeneratorNormalise
java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorGeneratorNormalise
- All Implemented Interfaces:
Provider,Refreshable
A generator that accepts a VectorProvider and normalizes it
-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.providers.generator.vector.VectorGenerator
VectorGenerator.VectorGeneratorType -
Constructor Summary
ConstructorsConstructorDescriptionVectorGeneratorNormalise(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this generator from a ConfigurationSection, logging errors in the given settingsVectorGeneratorNormalise(org.bukkit.util.Vector value) Clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionclone()protected org.bukkit.util.VectorvoidwriteToConfig(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, getValue, refresh, refreshInternal
-
Constructor Details
-
VectorGeneratorNormalise
Clone constructor.- Parameters:
clone- The object to clone from.
-
VectorGeneratorNormalise
-
VectorGeneratorNormalise
public VectorGeneratorNormalise(org.bukkit.util.Vector value) -
VectorGeneratorNormalise
public VectorGeneratorNormalise(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 org.bukkit.util.Vector getNewValue()- Specified by:
getNewValuein 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
-
clone
- Specified by:
clonein classVectorGenerator
-