Class ProjectileListener

java.lang.Object
studio.magemonkey.fabled.listener.FabledListener
studio.magemonkey.fabled.listener.ProjectileListener
All Implemented Interfaces:
org.bukkit.event.Listener

public class ProjectileListener extends FabledListener
Listener to throw custom ProjectileTickEvent
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static boolean
    isFlying(org.bukkit.entity.Projectile projectile)
    Checks if specified projectile is still in air
    void
    onHit(org.bukkit.event.entity.ProjectileHitEvent event)
    Removes mark from projectile
    void
    onLaunch(org.bukkit.event.entity.ProjectileLaunchEvent event)
    Marks projectiles as "flying"

    Methods inherited from class studio.magemonkey.fabled.listener.FabledListener

    init

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ProjectileListener

      public ProjectileListener()
  • Method Details

    • cleanup

      public void cleanup()
      Overrides:
      cleanup in class FabledListener
    • onLaunch

      public void onLaunch(org.bukkit.event.entity.ProjectileLaunchEvent event)
      Marks projectiles as "flying"
    • onHit

      public void onHit(org.bukkit.event.entity.ProjectileHitEvent event)
      Removes mark from projectile
    • isFlying

      public static boolean isFlying(org.bukkit.entity.Projectile projectile)
      Checks if specified projectile is still in air