Esempio n. 1
0
 @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;
 }
Esempio n. 2
0
 @SuppressWarnings("deprecation")
 @Override
 public void setProfession(Profession profession) {
   this.setProfession(profession.getId());
 }