================== Spawning an Entity ================== In almost all cases, to spawn an entity, you need an `EntityType `__, a `World `__, and a `Location `__ to do so. For example, let's try to spawn a Creeper: .. code-block:: java import org.spongepowered.api.entity.EntityTypes; import org.spongepowered.api.world.Location; import org.spongepowered.api.world.World; import com.google.common.base.Optional; public void spawnEntity(Location location) { World world = location.getWorld(); // We need to create the entity Optional optional = world.createEntity(EntityTypes.CREEPER, location); if (optional.isPresent()) { // After this, we can use more API that relates to creeper Creeper creeper = (Creeper) optional.get(); creeper.setPowered(true); creeper.setExplosionRadius(10); // Now we're actually spawning in the creeper into the world world.spawnEntity(creeper); } } The code excerpt illustrated above will spawn in a charged creeper with a higher than normal explosion radius at the given location.