public interface EntitySpawner
| Modifier and Type | Field and Description |
|---|---|
static EntitySpawner |
INSTANCE
The instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends org.bukkit.entity.Entity> |
spawn(org.bukkit.Location location,
Class<T> entityClass,
Consumer<? super T> beforeAdd)
Spawns an entity at the given location.
|
static final EntitySpawner INSTANCE
<T extends org.bukkit.entity.Entity> T spawn(org.bukkit.Location location,
Class<T> entityClass,
Consumer<? super T> beforeAdd)
T - the entity typelocation - the location to spawn atentityClass - the class of the entitybeforeAdd - a callback executed after the entity has been created but before it is added to the worldCopyright © 2022. All rights reserved.