mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-30 13:09:10 +01:00
Pull methods up
This commit is contained in:
parent
d4dad1b05d
commit
9878500f18
@ -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