Revert "Implemented animation events and made some event classes abstract."

This reverts commit cd180e4520.
This commit is contained in:
Kam committed 2024-09-23 13:56:50 -04:00
1 parent 2aac7f64cf
commit 9f59b8843e
6 files changed
+2 -56

No files matched your search

@@ -1,8 +0,0 @@
package noppes.npcs.api.entity;
import noppes.npcs.api.handler.data.IAnimationData;
public interface IAnimatable {
IAnimationData getAnimationData();
}
+1 -1
View File
@@ -13,7 +13,7 @@ import noppes.npcs.api.item.IItemStack;
import noppes.npcs.api.jobs.IJob;
import noppes.npcs.api.roles.IRole;
public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T>, IAnimatable {
public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
/**
* @return Returns the current npcs size 1-30
*/
+1 -1
View File
@@ -13,7 +13,7 @@ import noppes.npcs.api.handler.data.ISound;
import noppes.npcs.api.item.IItemStack;
import noppes.npcs.api.overlay.ICustomOverlay;
public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>, IAnimatable {
public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T> {
/**
* @return Returns the displayed name of the player
*/
@@ -1,40 +0,0 @@
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 {
}
}
}
@@ -2,8 +2,6 @@ package noppes.npcs.api.handler.data;
public interface IAnimation {
IAnimationData getParent();
IFrame currentFrame();
IFrame[] getFrames();
@@ -1,11 +1,7 @@
package noppes.npcs.api.handler.data;
import noppes.npcs.api.entity.IAnimatable;
public interface IAnimationData {
IAnimatable getEntity();
void updateClient();
boolean isActive();