Class ParticleProjectileHitEvent

java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.ParticleProjectileHitEvent

public class ParticleProjectileHitEvent extends org.bukkit.event.Event

An event for when a particle projectile hits something.

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleProjectileHitEvent(ParticleProjectile projectile, org.bukkit.entity.LivingEntity target)
    Initializes a new event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Bukkit method for taking care of the event handlers.
    org.bukkit.event.HandlerList
    Bukkit method for taking care of the event handlers.
    Retrieves the projectile that hit something.
    org.bukkit.entity.LivingEntity
    Retrieves the thing that was hit by the projectile.

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • ParticleProjectileHitEvent

      public ParticleProjectileHitEvent(ParticleProjectile projectile, org.bukkit.entity.LivingEntity target)

      Initializes a new event.

      Parameters:
      projectile - the projectile that hit something
      target - the thing that the projectile hit
  • Method Details

    • getProjectile

      public ParticleProjectile getProjectile()

      Retrieves the projectile that hit something.

      Returns:
      the projectile that hit something
    • getTarget

      public org.bukkit.entity.LivingEntity getTarget()

      Retrieves the thing that was hit by the projectile.

      Returns:
      the thing hit by the projectile
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()

      Bukkit method for taking care of the event handlers.

      Specified by:
      getHandlers in class org.bukkit.event.Event
      Returns:
      list of event handlers
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()

      Bukkit method for taking care of the event handlers.

      Returns:
      list of event handlers