public class PlayerMountNpcEvent extends PlayerNpcEvent implements Cancellable
PlayerDismountNpcEvent| Constructor and Description |
|---|
PlayerMountNpcEvent(Player player,
Npc targetNpc) |
| Modifier and Type | Method and Description |
|---|---|
Npc |
getNpc()
Gets the npc.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayerpublic Npc getNpc()
PlayerNpcEventgetNpc in class PlayerNpcEventpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.