public class PlayerInteractEntityEvent extends Object implements PlayerEvent, Cancellable
| Constructor and Description |
|---|
PlayerInteractEntityEvent(Player player,
Entity entity,
ItemStack item) |
| Modifier and Type | Method and Description |
|---|---|
Entity |
getEntity() |
ItemStack |
getItem() |
Player |
getPlayer()
Get the player in question.
|
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcancelpublic Player getPlayer()
PlayerEventgetPlayer in interface PlayerEventpublic Entity getEntity()
public ItemStack getItem()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.Copyright © 2017–2019 NukkitX. All rights reserved.