mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
SPIGOT-5887: ClickType doesn't include off hand swaps
By: md_5 <git@md-5.net>
This commit is contained in:
parent
b308f3d92e
commit
ee04822ac1
@ -53,6 +53,10 @@ public enum ClickType {
|
|||||||
* Any action done with the Creative inventory open.
|
* Any action done with the Creative inventory open.
|
||||||
*/
|
*/
|
||||||
CREATIVE,
|
CREATIVE,
|
||||||
|
/**
|
||||||
|
* The "swap item with offhand" key (defaults to F).
|
||||||
|
*/
|
||||||
|
SWAP_OFFHAND,
|
||||||
/**
|
/**
|
||||||
* A type of inventory manipulation not yet recognized by Bukkit.
|
* A type of inventory manipulation not yet recognized by Bukkit.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -68,10 +68,14 @@ public enum InventoryAction {
|
|||||||
/**
|
/**
|
||||||
* The clicked item is moved to the hotbar, and the item currently there
|
* The clicked item is moved to the hotbar, and the item currently there
|
||||||
* is re-added to the player's inventory.
|
* is re-added to the player's inventory.
|
||||||
|
*
|
||||||
|
* The hotbar includes the player's off hand.
|
||||||
*/
|
*/
|
||||||
HOTBAR_MOVE_AND_READD,
|
HOTBAR_MOVE_AND_READD,
|
||||||
/**
|
/**
|
||||||
* The clicked slot and the picked hotbar slot are swapped.
|
* The clicked slot and the picked hotbar slot are swapped.
|
||||||
|
*
|
||||||
|
* The hotbar includes the player's off hand.
|
||||||
*/
|
*/
|
||||||
HOTBAR_SWAP,
|
HOTBAR_SWAP,
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user