Package wbs.utils.util.particles
Class CircleParticleEffect
java.lang.Object
wbs.utils.util.particles.WbsParticleEffect
wbs.utils.util.particles.VelocityParticleEffect
wbs.utils.util.particles.CircleParticleEffect
- Direct Known Subclasses:
DiscParticleEffect,RingParticleEffect,SphereParticleEffect,SpiralParticleEffect
A particle effect that has a radius, rotation, and axis of rotation
-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.particles.WbsParticleEffect
WbsParticleEffect.WbsParticleType -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected VectorProviderprotected NumProviderprotected NumProviderFields inherited from class wbs.utils.util.particles.VelocityParticleEffect
direction, relative, speed, variation -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCircleParticleEffect(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory) -
Method Summary
Modifier and TypeMethodDescriptionprotected CircleParticleEffectcloneInto(CircleParticleEffect cloned) org.bukkit.util.VectorgetAbout()doubledoubleprotected voidRefresh all providers for this object.setAbout(org.bukkit.util.Vector about) Sets the vector about which rotation occurssetAbout(VectorProvider about) Sets the about vector provider directlysetRadius(double radius) setRadius(NumProvider radius) setRotation(double rotation) setRotation(NumProvider rotation) Set the rotation as a provider directlyvoidwriteToConfig(org.bukkit.configuration.ConfigurationSection section, String path) Save this effect in a config that can be read byWbsParticleEffect.buildParticleEffect(ConfigurationSection, WbsSettings, String)Methods inherited from class wbs.utils.util.particles.VelocityParticleEffect
cloneInto, getDirection, getDirectionProvider, getRelative, getSpeed, getSpeedProvider, getVariation, getVariationProvider, play, play, setDirection, setDirection, setRelative, setSpeed, setSpeed, setVariation, setVariationMethods inherited from class wbs.utils.util.particles.WbsParticleEffect
build, buildAndPlay, buildParticleEffect, clone, cloneInto, filterChances, getAmount, getAmountProvider, getForce, getLocations, rand, scaleVector, setAmount, setAmount, setChance, setForce, setOptions, setPlugin
-
Field Details
-
about
-
radius
-
rotation
-
-
Constructor Details
-
CircleParticleEffect
public CircleParticleEffect() -
CircleParticleEffect
protected CircleParticleEffect(org.bukkit.configuration.ConfigurationSection section, WbsSettings settings, String directory)
-
-
Method Details
-
refreshProviders
protected void refreshProviders()Description copied from class:WbsParticleEffectRefresh all providers for this object. Subclasses may override this, but should call super.refreshProviders() at the start of the method- Overrides:
refreshProvidersin classVelocityParticleEffect
-
cloneInto
-
getRadius
public double getRadius() -
getRadiusProvider
-
setRadius
-
setRadius
-
getAbout
public org.bukkit.util.Vector getAbout()- Returns:
- The vector about which rotation occurs
-
getAboutProvider
-
setAbout
Sets the vector about which rotation occurs- Parameters:
about- The about vector- Returns:
- The same particle effect
-
setAbout
Sets the about vector provider directly- Parameters:
about- The about vector provider- Returns:
- The same particle effect
-
getRotation
public double getRotation()- Returns:
- The rotation in degrees
-
getRotationProvider
-
setRotation
- Parameters:
rotation- The rotation in degrees- Returns:
- The same particle effect
-
setRotation
Set the rotation as a provider directly- Parameters:
rotation- The new rotation NumProvider- Returns:
- The same particle effect
-
writeToConfig
Description copied from class:WbsParticleEffectSave this effect in a config that can be read byWbsParticleEffect.buildParticleEffect(ConfigurationSection, WbsSettings, String)- Overrides:
writeToConfigin classVelocityParticleEffect- Parameters:
section- The section to write topath- The field/path inside the given section
-