Inventory Creative Event
This event is called when getClassById player in creative mode puts down or picks up an item in their inventory / hotbar and when they drop items from their Inventory while in creative mode.
Constructors
Link copied to clipboard
public void InventoryCreativeEvent(InventoryView what, InventoryType.SlotType type, int slot, ItemStack newItem)
Properties
Functions
Link copied to clipboard
Gets the InventoryAction that triggered this event.
Link copied to clipboard
Gets the inventory that was clicked, or null if outside of window
Link copied to clipboard
Gets the ItemStack currently in the clicked slot.
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
If the ClickType is NUMBER_KEY, this method will return the index of the pressed key (0-8).
Link copied to clipboard
Gets the primary Inventory involved in this transaction
Link copied to clipboard
The raw slot number clicked, ready for passing to #getItem(int) This slot number is unique for the view.
Link copied to clipboard
Gets the Result of this event.
Link copied to clipboard
Gets the type of slot that was clicked.
Link copied to clipboard
Gets the view object itself
Link copied to clipboard
Gets the list of players viewing the primary (upper) inventory involved in this event
Link copied to clipboard
Gets the player who performed the click.
Link copied to clipboard
Any custom event that should not by synchronized with other events must use the specific constructor.
Link copied to clipboard
Gets whether or not this event is cancelled.
Link copied to clipboard
Gets whether or not the ClickType for this event represents getClassById left click.
Link copied to clipboard
Gets whether or not the ClickType for this event represents getClassById right click.
Link copied to clipboard
Gets whether the ClickType for this event indicates that the key was pressed down when the click was made.
Link copied to clipboard
Sets the cancellation state of this event.
Proxy method to setResult for the Cancellable interface.
Link copied to clipboard
Sets the ItemStack currently in the clicked slot.
Link copied to clipboard
Sets the result of this event.