| 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 and Description |
|---|---|
CreatureSpawnEvent.SpawnReason |
PreCreatureSpawnEvent.getReason() |
| Constructor and Description |
|---|
PhantomPreSpawnEvent(@NotNull Location location,
@NotNull Entity entity,
CreatureSpawnEvent.SpawnReason reason) |
PreCreatureSpawnEvent(@NotNull Location location,
@NotNull EntityType type,
CreatureSpawnEvent.SpawnReason reason) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
@Nullable Consumer<T> function,
CreatureSpawnEvent.SpawnReason reason) |
default <T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason) |
default <T extends Entity> |
World.spawn(@NotNull Location location,
@NotNull Class<T> clazz,
CreatureSpawnEvent.SpawnReason reason,
@Nullable Consumer<T> function) |
default @NotNull Entity |
World.spawnEntity(@NotNull Location loc,
@NotNull EntityType type,
CreatureSpawnEvent.SpawnReason reason) |
default @NotNull Entity |
World.spawnEntity(@NotNull Location loc,
@NotNull EntityType type,
CreatureSpawnEvent.SpawnReason reason,
@Nullable Consumer<Entity> function) |
| Modifier and Type | Method and Description |
|---|---|
CreatureSpawnEvent.SpawnReason |
Entity.getEntitySpawnReason() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull 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 and Description |
|---|
CreatureSpawnEvent(@NotNull LivingEntity spawnee,
@NotNull CreatureSpawnEvent.SpawnReason spawnReason) |
Copyright © 2021. All rights reserved.