mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 19:28:03 +01:00
fix javadocs
This commit is contained in:
parent
7ed92736c0
commit
03603ab34b
1 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ Exposes a mutable array on items a player should keep on death
|
|||
Example Usage: https://gist.github.com/aikar/5bb202de6057a051a950ce1f29feb0b4
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
|
||||
index 5b0ef1eb..af6070d1 100644
|
||||
index 5b0ef1eb..c96815a4 100644
|
||||
--- a/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
|
||||
+++ b/src/main/java/org/bukkit/event/entity/PlayerDeathEvent.java
|
||||
@@ -0,0 +0,0 @@ public class PlayerDeathEvent extends EntityDeathEvent {
|
||||
|
@ -22,8 +22,8 @@ index 5b0ef1eb..af6070d1 100644
|
|||
+ * A mutable collection to add items that the player should retain in their inventory on death (Similar to KeepInventory game rule)
|
||||
+ *
|
||||
+ * You <b>MUST</b> remove the item from the .getDrops() collection too or it will duplicate!
|
||||
+ * <pre>
|
||||
+ * \@EventHandler(ignoreCancelled = true)
|
||||
+ * <pre>{@code
|
||||
+ * @literal @EventHandler(ignoreCancelled = true)
|
||||
+ * public void onPlayerDeath(PlayerDeathEvent event) {
|
||||
+ * for (Iterator<ItemStack> iterator = event.getDrops().iterator(); iterator.hasNext(); ) {
|
||||
+ * ItemStack drop = iterator.next();
|
||||
|
@ -36,7 +36,7 @@ index 5b0ef1eb..af6070d1 100644
|
|||
+ * }
|
||||
+ * }
|
||||
+ * }
|
||||
+ * </pre>
|
||||
+ * }</pre>
|
||||
+ *
|
||||
+ * Adding an item to this list that the player did not previously have will give them the item on death.
|
||||
+ * An example case could be a "Note" that "You died at X/Y/Z coordinates"
|
||||
|
|
Loading…
Add table
Reference in a new issue