Class ItemProjectileHitEvent
java.lang.Object
org.bukkit.event.Event
studio.magemonkey.fabled.api.event.ItemProjectileHitEvent
public class ItemProjectileHitEvent
extends org.bukkit.event.Event
An event for when an item projectile hits something.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionItemProjectileHitEvent
(ItemProjectile projectile, org.bukkit.entity.LivingEntity target) Initializes a new event. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
ItemProjectileHitEvent
Initializes a new event.
- Parameters:
projectile
- the projectile that hit somethingtarget
- the thing that the projectile hit
-
-
Method Details
-
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 classorg.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
-