public 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,
Item item,
InventoryMoveItemEvent.Action action) |
| Modifier and Type | Method and Description |
|---|---|
InventoryMoveItemEvent.Action |
getAction() |
static HandlerList |
getHandlers() |
Item |
getItem() |
InventoryHolder |
getSource() |
Inventory |
getTargetInventory() |
void |
setItem(Item item) |
getInventory, getViewersgetEventName, isCancelled, setCancelled, setCancelledclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisCancelled, setCancelled, setCancelledpublic InventoryMoveItemEvent(Inventory from, Inventory targetInventory, InventoryHolder source, Item item, InventoryMoveItemEvent.Action action)
public static HandlerList getHandlers()
public Inventory getTargetInventory()
public InventoryHolder getSource()
public Item getItem()
public void setItem(Item item)
public InventoryMoveItemEvent.Action getAction()
Copyright © 2020. All rights reserved.