mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-5887: ClickType doesn't include off hand swaps
This commit is contained in:
parent
5ff7c7ce67
commit
2c1ee10e16
2 changed files with 8 additions and 0 deletions
|
@ -53,6 +53,10 @@ public enum ClickType {
|
|||
* Any action done with the Creative inventory open.
|
||||
*/
|
||||
CREATIVE,
|
||||
/**
|
||||
* The "swap item with offhand" key (defaults to F).
|
||||
*/
|
||||
SWAP_OFFHAND,
|
||||
/**
|
||||
* A type of inventory manipulation not yet recognized by Bukkit.
|
||||
* <p>
|
||||
|
|
|
@ -68,10 +68,14 @@ public enum InventoryAction {
|
|||
/**
|
||||
* The clicked item is moved to the hotbar, and the item currently there
|
||||
* is re-added to the player's inventory.
|
||||
*
|
||||
* The hotbar includes the player's off hand.
|
||||
*/
|
||||
HOTBAR_MOVE_AND_READD,
|
||||
/**
|
||||
* The clicked slot and the picked hotbar slot are swapped.
|
||||
*
|
||||
* The hotbar includes the player's off hand.
|
||||
*/
|
||||
HOTBAR_SWAP,
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue