mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 23:10:16 +01:00
[ci skip] Referenced InventoryDragEvent in documentation of InventoryClickEvent (#10395)
This commit is contained in:
parent
526795bacd
commit
8fe90dede7
2 changed files with 11 additions and 5 deletions
|
@ -850,10 +850,16 @@ index 1440c6115520d692faf75455df35b92aa8734491..0808e7aeffb69160913344de5b5e21d5
|
||||||
public class FurnaceStartSmeltEvent extends InventoryBlockStartEvent {
|
public class FurnaceStartSmeltEvent extends InventoryBlockStartEvent {
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
index 79797a2be7fb139d528116d34d13e51d39b96e56..fe58058f9b5d29388d48115cc81dc48ab08c58c1 100644
|
index 79797a2be7fb139d528116d34d13e51d39b96e56..f2a2a2ad9930499c5bf624e73571a3294a90db14 100644
|
||||||
--- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
+++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
@@ -19,9 +19,10 @@ import org.jetbrains.annotations.Nullable;
|
@@ -16,12 +16,16 @@ 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,
|
* Because InventoryClickEvent occurs within a modification of the Inventory,
|
||||||
* not all Inventory related methods are safe to use.
|
* not all Inventory related methods are safe to use.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -867,7 +873,7 @@ index 79797a2be7fb139d528116d34d13e51d39b96e56..fe58058f9b5d29388d48115cc81dc48a
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>{@link HumanEntity#closeInventory()}
|
* <li>{@link HumanEntity#closeInventory()}
|
||||||
* <li>{@link HumanEntity#openInventory(Inventory)}
|
* <li>{@link HumanEntity#openInventory(Inventory)}
|
||||||
@@ -92,7 +93,7 @@ public class InventoryClickEvent extends InventoryInteractEvent {
|
@@ -92,7 +96,7 @@ public class InventoryClickEvent extends InventoryInteractEvent {
|
||||||
/**
|
/**
|
||||||
* Gets the ItemStack currently in the clicked slot.
|
* Gets the ItemStack currently in the clicked slot.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1150,10 +1150,10 @@ index 80a0a4ad813d6453b30273d25942e6612bb05c1b..18bb808e73c7a78f367ccdb44d5fe12b
|
||||||
this.inventory = inventory;
|
this.inventory = inventory;
|
||||||
this.containerType = containerType;
|
this.containerType = containerType;
|
||||||
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
index fe58058f9b5d29388d48115cc81dc48ab08c58c1..ac67a4e321f43d1ede09dafe2daa1f07de8a923f 100644
|
index f2a2a2ad9930499c5bf624e73571a3294a90db14..c8540a42ab44647fdd112ce4f731f3dc0df552f4 100644
|
||||||
--- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
--- a/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
+++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
+++ b/src/main/java/org/bukkit/event/inventory/InventoryClickEvent.java
|
||||||
@@ -85,7 +85,7 @@ public class InventoryClickEvent extends InventoryInteractEvent {
|
@@ -88,7 +88,7 @@ public class InventoryClickEvent extends InventoryInteractEvent {
|
||||||
*
|
*
|
||||||
* @return the cursor ItemStack
|
* @return the cursor ItemStack
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue