mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 17:44:47 +00:00
Implemented animation events and made some event classes abstract.
This commit is contained in:
1 parent
51d086285e
commit
cd180e4520
6 files changed
+56
-2
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 {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user