mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 22:34:44 +00:00
53 lines
998 B
Java
53 lines
998 B
Java
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();
|
|
|
|
/**
|
|
* @hookName animationStart
|
|
*/
|
|
@Cancelable
|
|
interface Started extends IAnimationEvent {
|
|
|
|
}
|
|
|
|
/**
|
|
* @hookName animationEnd
|
|
*/
|
|
interface Ended extends IAnimationEvent {
|
|
|
|
}
|
|
|
|
interface IFrameEvent extends IAnimationEvent {
|
|
|
|
int getIndex();
|
|
|
|
IFrame getFrame();
|
|
|
|
/**
|
|
* @hookName frameEnter
|
|
*/
|
|
interface Entered extends IFrameEvent {
|
|
|
|
}
|
|
|
|
/**
|
|
* @hookName frameExit
|
|
*/
|
|
interface Exited extends IFrameEvent {
|
|
|
|
}
|
|
}
|
|
}
|