Remove old files

This commit is contained in:
fullwall 2012-11-20 23:55:21 +08:00
parent 68014f2529
commit 5aebf7c2bb

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));
}
}