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