Example #1
0
 @Override
 public Entity createAndSpawnEntity(
     Point point, LoadOption option, Class<? extends Component>... classes) {
   getRegionFromBlock(point, option);
   Entity e = createEntity(point, classes);
   spawnEntity(e);
   return e;
 }
Example #2
0
 /** Spawns an entity into the world. Fires off a cancellable EntitySpawnEvent */
 @Override
 public void spawnEntity(Entity e) {
   spawnEntity(e, -1);
 }