Package wbs.utils.util.particles
Class CustomParticleEffect
java.lang.Object
wbs.utils.util.particles.WbsParticleEffect
wbs.utils.util.particles.CustomParticleEffect
An abstract particle effect to be overridden anonymously
-
Nested Class Summary
Nested classes/interfaces inherited from class wbs.utils.util.particles.WbsParticleEffect
WbsParticleEffect.WbsParticleType -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CustomParticleEffectbuild()Generate the particle set based on current settings.clone()abstract CustomParticleEffectplay(org.bukkit.Particle particle, org.bukkit.Location loc) Run the effect pattern at the given location with the given particle.Set the points to be used inplay(Particle, Location)Methods inherited from class wbs.utils.util.particles.WbsParticleEffect
buildAndPlay, buildParticleEffect, cloneInto, filterChances, getAmount, getAmountProvider, getForce, getLocations, play, rand, refreshProviders, scaleVector, setAmount, setAmount, setChance, setForce, setOptions, setPlugin, writeToConfig
-
Constructor Details
-
CustomParticleEffect
public CustomParticleEffect()
-
-
Method Details
-
setPoints
Set the points to be used inplay(Particle, Location)- Parameters:
points- The new list of points to play at- Returns:
- The same particle effect
-
build
Description copied from class:WbsParticleEffectGenerate the particle set based on current settings. Call this before the first time it is run, or call buildAndRun each time to run based on current settings.- Specified by:
buildin classWbsParticleEffect- Returns:
- The same object.
-
play
Description copied from class:WbsParticleEffectRun the effect pattern at the given location with the given particle. For shapes needing two locations (such as Line), a random second location will be chosen a random number of blocks away from the given location.- Specified by:
playin classWbsParticleEffect- Parameters:
particle- The particle type to useloc- The location at which to run the effect.- Returns:
- The same object.
-
clone
- Specified by:
clonein classWbsParticleEffect
-