Revert "Revert Animation Events"

This reverts commit 1ffddd3ce9.
This commit is contained in:
Kam committed 2024-08-22 16:47:07 -04:00
1 parent 2689127787
commit 4113bcc6e9
31 files changed
+694 -206

No files matched your search

@@ -4,8 +4,9 @@ import noppes.npcs.api.IBlock;
import noppes.npcs.api.entity.IEntity;
import noppes.npcs.api.entity.IProjectile;
import noppes.npcs.api.event.IProjectileEvent;
import noppes.npcs.constants.EnumScriptType;
public class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent {
public abstract class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent {
public IProjectile projectile;
public IEntity source;
@@ -29,6 +30,11 @@ public class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent
public UpdateEvent(IProjectile projectile) {
super(projectile);
}
@Override
public String getHookName() {
return EnumScriptType.PROJECTILE_TICK.function;
}
}
/**
@@ -62,5 +68,10 @@ public class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent
return (IBlock) target;
return null;
}
@Override
public String getHookName() {
return EnumScriptType.PROJECTILE_IMPACT.function;
}
}
}