PaperMC/patches/api/Deprecate-InvAction-HOTBAR_MOVE_AND_READD.patch
2024-05-29 14:56:14 -07:00

20 lines
983 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Sat, 25 May 2024 09:51:07 -0700
Subject: [PATCH] Deprecate InvAction#HOTBAR_MOVE_AND_READD
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryAction.java b/src/main/java/org/bukkit/event/inventory/InventoryAction.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
--- a/src/main/java/org/bukkit/event/inventory/InventoryAction.java
+++ b/src/main/java/org/bukkit/event/inventory/InventoryAction.java
@@ -0,0 +0,0 @@ public enum InventoryAction {
* is re-added to the player's inventory.
*
* The hotbar includes the player's off hand.
+ * @deprecated This action no longer happens, they are all {@link #HOTBAR_SWAP}s.
*/
+ @Deprecated(since = "1.20.6") // Paper
HOTBAR_MOVE_AND_READD,
/**
* The clicked slot and the picked hotbar slot are swapped.