Package noppes.npcs.api.event
Interface IProjectileEvent
-
- All Superinterfaces:
ICustomNPCsEvent
- All Known Subinterfaces:
IProjectileEvent.ImpactEvent,IProjectileEvent.UpdateEvent
public interface IProjectileEvent extends ICustomNPCsEvent
Events fired during NPC projectile lifecycle and impacts.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIProjectileEvent.ImpactEventFired when the projectile hits something.static interfaceIProjectileEvent.UpdateEventFired each tick while the projectile exists.-
Nested classes/interfaces inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
ICustomNPCsEvent.CNPCNaturalSpawnEvent, ICustomNPCsEvent.ScriptedCommandEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IProjectilegetProjectile()IEntitygetSource()-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getProjectile
IProjectile getProjectile()
- Returns:
- the projectile entity.
-
getSource
IEntity getSource()
- Returns:
- the entity that launched this projectile.
-
-