mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 21:29:14 +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);
|
protected abstract EntityLiving createHandle(Location loc);
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean despawn() {
|
|
||||||
return despawn(DespawnReason.PLUGIN);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean despawn(DespawnReason reason) {
|
public boolean despawn(DespawnReason reason) {
|
||||||
if (!isSpawned())
|
if (!isSpawned())
|
||||||
@ -95,11 +90,6 @@ public abstract class CitizensNPC extends AbstractNPC {
|
|||||||
return navigator;
|
return navigator;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public Trait getTraitFor(Class<? extends Trait> clazz) {
|
|
||||||
return CitizensAPI.getTraitFactory().getTrait(clazz);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isSpawned() {
|
public boolean isSpawned() {
|
||||||
return mcEntity != null;
|
return mcEntity != null;
|
||||||
|
Loading…
Reference in New Issue
Block a user