@Override public void setTamed(boolean bln) { t.setTamed(bln); }
@Override public SpellResult perform(CastContext context) { Entity entity = context.getTargetEntity(); if (!(entity instanceof Tameable)) { return SpellResult.NO_TARGET; } Tameable tameable = (Tameable)entity; if (tameable.isTamed()) { return SpellResult.NO_TARGET; } tameable.setTamed(true); Player tamer = context.getMage().getPlayer(); if (tamer != null) { tameable.setOwner(tamer); } return SpellResult.CAST; }
pet.setTamed(false); pet.setOwner(null); if(pet instanceof InventoryHolder)
((Tameable) creature).setOwner((AnimalTamer) sender); } else { ((Tameable) creature).setTamed(true);
((Tameable)entity).setTamed(isTamed);
((Tameable)e).setTamed(ent.getBoolean("tamed"));
tameable.setTamed(true); Player owner = context.getMage().getPlayer(); if (owner != null) {
((Tameable) entity).setTamed(true);
((Tameable) ent).setTamed(true); ((Tameable) ent).setOwner(player); switch (pet.getType()) {