Class ProjectilePreview

java.lang.Object
studio.magemonkey.fabled.cast.Preview
studio.magemonkey.fabled.cast.ProjectilePreview

public class ProjectilePreview extends Preview
Represents a preview indicator for showing the direction of projectiles to fire
  • Constructor Details

    • ProjectilePreview

      public ProjectilePreview(double speed, double gravity)
      Parameters:
      speed - speed of the projectile
      gravity - 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:
      playParticles in class Preview
      Parameters:
      particle - particle type to use
      step - animation step
    • getSpeed

      public double getSpeed()
    • getGravity

      public double getGravity()