Class ParticleEffect
java.lang.Object
studio.magemonkey.fabled.api.particle.ParticleEffect
- All Implemented Interfaces:
IParticleEffect
A particle effect that can be played
-
Constructor Summary
ConstructorsConstructorDescriptionParticleEffect(String name, PolarSettings shape, PolarSettings animation, ParticleSettings particle, DirectionHandler shapeDir, DirectionHandler animDir, String size, String animSize, int interval, int viewRange, boolean withRotation, double initialRotation) -
Method Summary
-
Constructor Details
-
ParticleEffect
public ParticleEffect(String name, PolarSettings shape, PolarSettings animation, ParticleSettings particle, DirectionHandler shapeDir, DirectionHandler animDir, String size, String animSize, int interval, int viewRange, boolean withRotation, double initialRotation) - Parameters:
shape- shape formula detailsanimation- motion animation formula detailsparticle- settings of the particle to useshapeDir- shape orientationanimDir- animation orientationsize- formula string for shape sizeanimSize- formula string for animation sizeinterval- time between animation frames in ticksviewRange- range in blocks players can see the effect from
-
-
Method Details
-
play
public void play(org.bukkit.Location loc, int frame, int level) Plays the effect- Specified by:
playin interfaceIParticleEffect- Parameters:
loc- location to play atframe- frame of the animation to playlevel- level of the effect
-
getName
- Specified by:
getNamein interfaceIParticleEffect- Returns:
- name of the effect
-
getInterval
public int getInterval()- Specified by:
getIntervalin interfaceIParticleEffect- Returns:
- time between each frame in ticks
-