Package noppes.npcs.api.event
Interface IAnimationEvent
-
- All Superinterfaces:
ICustomNPCsEvent
- All Known Subinterfaces:
IAnimationEvent.Ended,IAnimationEvent.IFrameEvent,IAnimationEvent.IFrameEvent.Entered,IAnimationEvent.IFrameEvent.Exited,IAnimationEvent.Started
public interface IAnimationEvent extends ICustomNPCsEvent
Events fired during entity animation playback.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceIAnimationEvent.EndedFired when an animation finishes playing.static interfaceIAnimationEvent.IFrameEventEvents fired when animation frames are entered or exited.static interfaceIAnimationEvent.StartedFired when an animation starts playing.-
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 IAnimationgetAnimation()IAnimationDatagetAnimationData()IAnimatablegetEntity()-
Methods inherited from interface noppes.npcs.api.event.ICustomNPCsEvent
getHookName
-
-
-
-
Method Detail
-
getAnimation
IAnimation getAnimation()
- Returns:
- the animation being played.
-
getAnimationData
IAnimationData getAnimationData()
- Returns:
- the animation data managing the playback.
-
getEntity
IAnimatable getEntity()
- Returns:
- the animatable entity playing the animation.
-
-