Revert Animation Events

This commit is contained in:
Kam committed 2024-05-26 19:26:47 -04:00
1 parent 4c46496c82
commit 1ffddd3ce9
31 files changed
+208 -696

No files matched your search

@@ -4,9 +4,8 @@ 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 abstract class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent {
public class ProjectileEvent extends CustomNPCsEvent implements IProjectileEvent {
public IProjectile projectile;
public IEntity source;
@@ -30,11 +29,6 @@ public abstract class ProjectileEvent extends CustomNPCsEvent implements IProjec
public UpdateEvent(IProjectile projectile) {
super(projectile);
}
@Override
public String getHookName() {
return EnumScriptType.PROJECTILE_TICK.function;
}
}
/**
@@ -68,10 +62,5 @@ public abstract class ProjectileEvent extends CustomNPCsEvent implements IProjec
return (IBlock) target;
return null;
}
@Override
public String getHookName() {
return EnumScriptType.PROJECTILE_IMPACT.function;
}
}
}