Package studio.magemonkey.fabled.cast
Class ProjectilePreview
java.lang.Object
studio.magemonkey.fabled.cast.Preview
studio.magemonkey.fabled.cast.ProjectilePreview
Represents a preview indicator for showing the direction of projectiles to fire
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoubledoublegetSpeed()voidplayParticles(org.bukkit.entity.Player player, ParticleSettings particle, org.bukkit.Location location, int step) Creates the packets for the indicator, adding them to the list
-
Constructor Details
-
ProjectilePreview
public ProjectilePreview(double speed, double gravity) - Parameters:
speed- speed of the projectilegravity- gravity of the projectile
-
-
Method Details
-
playParticles
public void playParticles(org.bukkit.entity.Player player, ParticleSettings particle, org.bukkit.Location location, int step) Creates the packets for the indicator, adding them to the list- Specified by:
playParticlesin classPreview- Parameters:
particle- particle type to usestep- animation step
-
getSpeed
public double getSpeed() -
getGravity
public double getGravity()
-