public class ItemFrameDropItemEvent extends Object implements BlockEvent, Cancellable
| Constructor and Description |
|---|
ItemFrameDropItemEvent(Player player,
Block block,
ItemFrameBlockEntity itemFrame,
ItemInstance item) |
| Modifier and Type | Method and Description |
|---|---|
Block |
getBlock() |
ItemInstance |
getItem() |
ItemFrameBlockEntity |
getItemFrame() |
Player |
getPlayer() |
boolean |
isCancelled()
Whether or not to cancel the event.
|
void |
setCancelled(boolean cancelled)
Decides whether to cancel the event.
|
public ItemFrameDropItemEvent(Player player, Block block, ItemFrameBlockEntity itemFrame, ItemInstance item)
public Player getPlayer()
public ItemFrameBlockEntity getItemFrame()
public ItemInstance getItem()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancelled)
CancellablesetCancelled in interface Cancellablecancelled - true to cancel the event.public Block getBlock()
getBlock in interface BlockEventCopyright © 2017–2019 NukkitX. All rights reserved.