| Package | Description | 
|---|---|
| org.bukkit | The root package of the Bukkit API, contains generalized API classes. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| default <T extends Entity> | World. spawn(Location location,
     Class<T> clazz,
     CreatureSpawnEvent.SpawnReason reason,
     Consumer<T> function) | |
| default <T extends Entity> | World. spawn(Location location,
     Class<T> clazz,
     Consumer<T> function) | Spawn an entity of a specific class at the given  Location, with
 the supplied function run before the entity is added to the world. | 
| <T extends Entity> | World. spawn(Location location,
     Class<T> clazz,
     Consumer<T> function,
     CreatureSpawnEvent.SpawnReason reason) | |
| default Entity | World. spawnEntity(Location loc,
           EntityType type,
           CreatureSpawnEvent.SpawnReason reason,
           Consumer<Entity> function) | 
Copyright © 2020. All rights reserved.