public final class CreatureSpawnEvent extends Event implements Cancellable
| Modifier and Type | Class and Description |
|---|---|
static class |
CreatureSpawnEvent.SpawnReason
An enum to specify the type of spawning
|
| Constructor and Description |
|---|
CreatureSpawnEvent(EntityType<?> type,
Location location,
CreatureSpawnEvent.SpawnReason reason) |
| Modifier and Type | Method and Description |
|---|---|
EntityType<?> |
getEntityType() |
Location |
getLocation() |
CreatureSpawnEvent.SpawnReason |
getReason() |
isCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic CreatureSpawnEvent(EntityType<?> type, Location location, CreatureSpawnEvent.SpawnReason reason)
public CreatureSpawnEvent.SpawnReason getReason()
public EntityType<?> getEntityType()
public Location getLocation()
Copyright © 2021. All rights reserved.