mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-08-20 12:54:03 +02:00
Remove old files
This commit is contained in:
parent
3c5f17022f
commit
33b4a7d188
|
@ -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