public class EntitySaddleEvent extends EntityEvent
| Constructor and Description |
|---|
EntitySaddleEvent(Entity entity,
Player player) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(boolean cancelled) |
boolean |
isIgnored() |
Player |
player()
Gets the player that saddled this pig
|
entity, setEntitypublic EntitySaddleEvent(Entity entity, Player player)
public boolean isIgnored()
isIgnored in interface CancellableisIgnored in class EntityEventpublic void cancel(boolean cancelled)
cancel in interface Cancellablecancel in class EntityEventcancelled - set the cancellation state of the eventCopyright © 2016. All rights reserved.