public final class InventoryMoveItemEvent extends InventoryEvent implements Cancellable
Called when inventory transaction is not caused by a player
| Modifier and Type | Class and Description |
|---|---|
static class |
InventoryMoveItemEvent.Action |
inventory| Constructor and Description |
|---|
InventoryMoveItemEvent(Inventory from,
Inventory targetInventory,
InventoryHolder source,
ItemStack item,
InventoryMoveItemEvent.Action action) |
| Modifier and Type | Method and Description |
|---|---|
InventoryMoveItemEvent.Action |
getAction() |
ItemStack |
getItem() |
InventoryHolder |
getSource() |
Inventory |
getTargetInventory() |
void |
setItem(ItemStack item) |
getInventory, getViewersisCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic InventoryMoveItemEvent(Inventory from, Inventory targetInventory, InventoryHolder source, ItemStack item, InventoryMoveItemEvent.Action action)
public Inventory getTargetInventory()
public InventoryHolder getSource()
public ItemStack getItem()
public void setItem(ItemStack item)
public InventoryMoveItemEvent.Action getAction()
Copyright © 2021. All rights reserved.