Animation events API changes

This commit is contained in:
Luis C.M. committed 2025-01-22 15:31:11 -06:00
1 parent 17d165e628
commit 8ced18ec84
6 files changed
+66 -6

No files matched your search

@@ -0,0 +1,40 @@
package noppes.npcs.api.event;
import cpw.mods.fml.common.eventhandler.Cancelable;
import noppes.npcs.api.entity.IAnimatable;
import noppes.npcs.api.handler.data.IAnimation;
import noppes.npcs.api.handler.data.IAnimationData;
import noppes.npcs.api.handler.data.IFrame;
public interface IAnimationEvent extends ICustomNPCsEvent {
IAnimation getAnimation();
IAnimationData getAnimationData();
IAnimatable getEntity();
@Cancelable
interface Started extends IAnimationEvent {
}
interface Ended extends IAnimationEvent {
}
interface IFrameEvent extends IAnimationEvent {
int getIndex();
IFrame getFrame();
interface Entered extends IFrameEvent {
}
interface Exited extends IFrameEvent {
}
}
}