A lot of GOOD API DOCUMENTATION

This commit is contained in:
Kam committed 2026-03-09 16:20:07 -04:00
1 parent a6c55ca331
commit 319e774518
131 files changed
+3363 -175

No files matched your search

@@ -6,15 +6,22 @@ import noppes.npcs.api.handler.data.IAnimation;
import noppes.npcs.api.handler.data.IAnimationData;
import noppes.npcs.api.handler.data.IFrame;
/**
* Events fired during entity animation playback.
*/
public interface IAnimationEvent extends ICustomNPCsEvent {
/** @return the animation being played. */
IAnimation getAnimation();
/** @return the animation data managing the playback. */
IAnimationData getAnimationData();
/** @return the animatable entity playing the animation. */
IAnimatable getEntity();
/**
* Fired when an animation starts playing. Cancelable.
* @hookName animationStart
*/
@Cancelable
@@ -23,16 +30,20 @@ public interface IAnimationEvent extends ICustomNPCsEvent {
}
/**
* Fired when an animation finishes playing.
* @hookName animationEnd
*/
interface Ended extends IAnimationEvent {
}
/** Events fired when animation frames are entered or exited. */
interface IFrameEvent extends IAnimationEvent {
/** @return the frame index. */
int getIndex();
/** @return the frame data. */
IFrame getFrame();
/**