@Override public Hostage spawnHostage(Location loc, Profession prof) { World world = ((CraftWorld) loc.getWorld()).getHandle(); CraftHostage hostage = new CraftHostage(world, prof.getId()); hostage.setLocation(loc); world.addEntity(hostage); return hostage; }
@SuppressWarnings("deprecation") @Override public void setProfession(Profession profession) { this.setProfession(profession.getId()); }