| Package | Description |
|---|---|
| com.destroystokyo.paper.event.entity | |
| org.bukkit |
The root package of the Bukkit API, contains generalized API classes.
|
| org.bukkit.entity |
Interfaces for non-voxel objects that can exist in a
world, including all players, monsters, projectiles, etc. |
| org.bukkit.event.entity |
| Modifier and Type | Method | Description |
|---|---|---|
CreatureSpawnEvent.SpawnReason |
PreCreatureSpawnEvent.getReason() |
| Constructor | Description |
|---|---|
PhantomPreSpawnEvent(Location location,
Entity entity,
CreatureSpawnEvent.SpawnReason reason) |
|
PreCreatureSpawnEvent(Location location,
EntityType type,
CreatureSpawnEvent.SpawnReason reason) |
| Modifier and Type | Method | Description |
|---|---|---|
default <T extends Entity> |
World.spawn(Location location,
Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason) |
|
default <T extends Entity> |
World.spawn(Location location,
Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason,
Consumer<T> function) |
|
<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) |
|
default Entity |
World.spawnEntity(Location loc,
EntityType type,
CreatureSpawnEvent.SpawnReason reason,
Consumer<Entity> function) |
| Modifier and Type | Method | Description |
|---|---|---|
CreatureSpawnEvent.SpawnReason |
Entity.getEntitySpawnReason() |
| Modifier and Type | Method | Description |
|---|---|---|
CreatureSpawnEvent.SpawnReason |
CreatureSpawnEvent.getSpawnReason() |
Gets the reason for why the creature is being spawned.
|
static CreatureSpawnEvent.SpawnReason |
CreatureSpawnEvent.SpawnReason.valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static CreatureSpawnEvent.SpawnReason[] |
CreatureSpawnEvent.SpawnReason.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor | Description |
|---|---|
CreatureSpawnEvent(LivingEntity spawnee,
CreatureSpawnEvent.SpawnReason spawnReason) |
Copyright © 2021. All rights reserved.