13
0
geforkt von Mirrors/Paper

[ci skip] Referenced InventoryDragEvent in documentation of InventoryClickEvent (#10395)

Dieser Commit ist enthalten in:
Hy3z 2024-04-12 21:19:55 +02:00
Ursprung 89528bff42
Commit 73c52d2df4

Datei anzeigen

@ -854,6 +854,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
--- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
+++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
@@ -0,0 +0,0 @@ import org.jetbrains.annotations.Nullable;
/**
* This event is called when a player clicks in an inventory.
* <p>
+ * In case of a drag action within an inventory, InventoryClickEvent is never called.
+ * Instead, {@link InventoryDragEvent} is called at the end of the drag.
+ * <p>
* Because InventoryClickEvent occurs within a modification of the Inventory,
* not all Inventory related methods are safe to use.
* <p>