Exemplo n.º 1
0
 /** Spawns an entity into the world. Fires off a cancellable EntitySpawnEvent */
 @Override
 public void spawnEntity(Entity e) {
   if (e.isSpawned()) {
     throw new IllegalArgumentException("Cannot spawn an entity that is already spawned!");
   }
   SpoutRegion region = (SpoutRegion) e.getRegion();
   region.addEntity(e);
 }