public interface ChangeInventoryEvent extends InteractInventoryEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
ChangeInventoryEvent.Click |
static interface |
ChangeInventoryEvent.Drag |
static interface |
ChangeInventoryEvent.Equipment |
static interface |
ChangeInventoryEvent.Held |
static interface |
ChangeInventoryEvent.Move |
InteractInventoryEvent.Close, InteractInventoryEvent.Open
Modifier and Type | Method and Description |
---|---|
Transaction<ItemStackSnapshot> |
getItemStackTransaction()
Gets the new
ItemStack that is being equipped in the relative
armor slot. |
Optional<ItemStackSnapshot> |
getOriginalItemStack()
Gets the previously equipped
ItemStack as an
ItemStackSnapshot . |
getTargetInventory
isCancelled, setCancelled
getCause
Optional<ItemStackSnapshot> getOriginalItemStack()
ItemStack
as an
ItemStackSnapshot
.
The previously equipped item may have been empty.
Transaction<ItemStackSnapshot> getItemStackTransaction()
ItemStack
that is being equipped in the relative
armor slot.
The itemstack may not exist or the slot is being emptied.