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