mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Remove old files
This commit is contained in:
parent
68014f2529
commit
5aebf7c2bb
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user