mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-03 15:08:23 +01:00
Pull methods up
This commit is contained in:
parent
6da3fd598c
commit
2f2da3b528
@ -49,11 +49,6 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
|
||||
protected abstract EntityLiving createHandle(Location loc);
|
||||
|
||||
@Override
|
||||
public boolean despawn() {
|
||||
return despawn(DespawnReason.PLUGIN);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean despawn(DespawnReason reason) {
|
||||
if (!isSpawned())
|
||||
@ -95,11 +90,6 @@ public abstract class CitizensNPC extends AbstractNPC {
|
||||
return navigator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Trait getTraitFor(Class<? extends Trait> clazz) {
|
||||
return CitizensAPI.getTraitFactory().getTrait(clazz);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSpawned() {
|
||||
return mcEntity != null;
|
||||
|
Loading…
Reference in New Issue
Block a user