Skip to content

Commit

Permalink
annotate
Browse files Browse the repository at this point in the history
  • Loading branch information
notTamion committed Aug 25, 2024
1 parent b885b34 commit 9e54864
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions patches/api/0486-Fix-InventoryAction-wrong-for-Bundles.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ Subject: [PATCH] Fix InventoryAction wrong for Bundles


diff --git a/src/main/java/org/bukkit/event/inventory/InventoryAction.java b/src/main/java/org/bukkit/event/inventory/InventoryAction.java
index b2bcc891196d487cf4c1962b51ec439e921f49f6..f5abc15444e0d6b50e3a82d0a452fc237be155a0 100644
index b2bcc891196d487cf4c1962b51ec439e921f49f6..22224c71f628808bff25c2b0868973f9c05bd7c2 100644
--- a/src/main/java/org/bukkit/event/inventory/InventoryAction.java
+++ b/src/main/java/org/bukkit/event/inventory/InventoryAction.java
@@ -93,5 +93,38 @@ public enum InventoryAction {
@@ -1,5 +1,7 @@
package org.bukkit.event.inventory;

+import org.jetbrains.annotations.ApiStatus; // Paper - Fix InventoryAction wrong for Bundles
+
/**
* An estimation of what the result will be.
*/
@@ -93,5 +95,46 @@ public enum InventoryAction {
* An unrecognized ClickType.
*/
UNKNOWN,
Expand All @@ -17,34 +25,42 @@ index b2bcc891196d487cf4c1962b51ec439e921f49f6..f5abc15444e0d6b50e3a82d0a452fc23
+ /**
+ * The first stack of items in the clicked bundle is moved to the cursor.
+ */
+ @ApiStatus.Internal
+ PICKUP_FROM_BUNDLE,
+ /**
+ * All of the items on the clicked slot are moved into the bundle on the cursor.
+ */
+ @ApiStatus.Internal
+ PICKUP_ALL_INTO_BUNDLE,
+ /**
+ * Some of the items on the clicked slot are moved into the bundle on the cursor.
+ */
+ @ApiStatus.Internal
+ PICKUP_SOME_INTO_BUNDLE,
+ /**
+ * One of the items on the clicked slot is moved into the bundle on the cursor.
+ */
+ @ApiStatus.Internal
+ PICKUP_ONE_INTO_BUNDLE,
+ /**
+ * The first stack of items is moved to the clicked slot.
+ */
+ @ApiStatus.Internal
+ PLACE_FROM_BUNDLE,
+ /**
+ * All of the items on the cursor are moved into the bundle in the clicked slot.
+ */
+ @ApiStatus.Internal
+ PLACE_ALL_INTO_BUNDLE,
+ /**
+ * Some of the items on the cursor are moved into the bundle in the clicked slot.
+ */
+ @ApiStatus.Internal
+ PLACE_SOME_INTO_BUNDLE,
+ /**
+ * One of the items on the cursor is moved into the bundle in the clicked slot.
+ */
+ @ApiStatus.Internal
+ PLACE_ONE_INTO_BUNDLE,
+ // Paper end - Fix InventoryAction wrong for Bundles
}

0 comments on commit 9e54864

Please sign in to comment.