Remove old files

This commit is contained in:
fullwall 2012-11-20 23:55:21 +08:00
parent 3c5f17022f
commit 33b4a7d188

View File

@ -1,31 +0,0 @@
package net.citizensnpcs.trait;
import net.citizensnpcs.api.persistence.Persist;
import net.citizensnpcs.api.trait.Trait;
import org.bukkit.craftbukkit.entity.CraftSkeleton;
public class SkeletonType extends Trait {
private boolean skeleton;
@Persist
private int type = 0;
public SkeletonType() {
super("skeletontype");
}
@Override
public void onSpawn() {
skeleton = npc.getBukkitEntity() instanceof CraftSkeleton;
}
@Override
public void run() {
if (skeleton)
((CraftSkeleton) npc.getBukkitEntity()).getHandle().setSkeletonType(type);
}
public void setType(int type) {
this.type = Math.max(0, Math.min(1, type));
}
}