public class EntitySpawnEvent extends EntityEvent
Constructor and Description |
---|
EntitySpawnEvent(Entity entity,
Position position) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
Position |
position() |
entity, setEntity
public EntitySpawnEvent(Entity entity, Position position)
entity
- the entity spawnedposition
- the position of the spawningpublic boolean isIgnored()
isIgnored
in interface Cancellable
isIgnored
in class EntityEvent
public void cancel(boolean cancelled)
cancel
in interface Cancellable
cancel
in class EntityEvent
cancelled
- set the cancellation state of the eventCopyright © 2016. All rights reserved.