Class VectorGeneratorRotate
java.lang.Object
wbs.utils.util.providers.generator.vector.VectorGenerator
wbs.utils.util.providers.generator.vector.VectorGeneratorRotate
- All Implemented Interfaces:
Provider,Refreshable
A generator that, over a defined period, returns a vector that rotates around the
origin with a radius defined by a NumProvider, where the axis about which it rotates
is defined by a VectorProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.providers.generator.vector.VectorGenerator
VectorGenerator.VectorGeneratorType -
Constructor Summary
ConstructorsConstructorDescriptionVectorGeneratorRotate(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) Create this generator from a ConfigurationSection, logging errors in the given settingsVectorGeneratorRotate(org.bukkit.util.Vector about, double period, double radius, double initialProgress) Clone constructor.VectorGeneratorRotate(VectorProvider about, NumProvider period, NumProvider radius, double initialProgress) -
Method Summary
Modifier and TypeMethodDescriptionclone()protected org.bukkit.util.VectorvoidvoidwriteToConfig(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
-
Constructor Details
-
VectorGeneratorRotate
Clone constructor.- Parameters:
clone- The object to clone from.
-
VectorGeneratorRotate
public VectorGeneratorRotate(VectorProvider about, NumProvider period, NumProvider radius, double initialProgress) -
VectorGeneratorRotate
public VectorGeneratorRotate(org.bukkit.util.Vector about, double period, double radius, double initialProgress) -
VectorGeneratorRotate
public VectorGeneratorRotate(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
-
refreshInternal
public void refreshInternal()- Overrides:
refreshInternalin classVectorGenerator
-
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
-