Add set/isAware to disable Vanilla AI components of a Mob

By: konsolas <vincentyntang@gmail.com>
This commit is contained in:
CraftBukkit/Spigot
2020-02-19 10:50:21 +00:00
parent 3e008424f2
commit 39966685a6
2 changed files with 62 additions and 11 deletions

View File

@@ -31,6 +31,16 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
return (CraftLivingEntity) getHandle().getGoalTarget().getBukkitEntity();
}
@Override
public void setAware(boolean aware) {
getHandle().aware = aware;
}
@Override
public boolean isAware() {
return getHandle().aware;
}
@Override
public EntityInsentient getHandle() {
return (EntityInsentient) entity;