aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2022-10-07 11:51:54 -0700
committerGitHub <[email protected]>2022-10-07 20:51:54 +0200
commit77a50b95dada2d73b92fdd95d674d357b64bc7d4 (patch)
tree15e418c8ad7ef37ee8f8dedb8e47fcb75059fc8f
parent60c973e461bf5caae9ac7403bfa5f879448c6a20 (diff)
downloadPaper-77a50b95dada2d73b92fdd95d674d357b64bc7d4.tar.gz
Paper-77a50b95dada2d73b92fdd95d674d357b64bc7d4.zip
Add Unmodifiable annotations to getDrops methods (#8440)
-rw-r--r--patches/api/0398-Add-getDrops-to-BlockState-and-isPreferredTool-to-Bl.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/api/0398-Add-getDrops-to-BlockState-and-isPreferredTool-to-Bl.patch b/patches/api/0398-Add-getDrops-to-BlockState-and-isPreferredTool-to-Bl.patch
index ff9178837d..c23b7577e0 100644
--- a/patches/api/0398-Add-getDrops-to-BlockState-and-isPreferredTool-to-Bl.patch
+++ b/patches/api/0398-Add-getDrops-to-BlockState-and-isPreferredTool-to-Bl.patch
@@ -5,7 +5,7 @@ Subject: [PATCH] Add getDrops to BlockState and isPreferredTool to BlockData
diff --git a/src/main/java/org/bukkit/block/BlockState.java b/src/main/java/org/bukkit/block/BlockState.java
-index 10cbe71917bc32cca61748bcb0aa3395c554dbf8..5be829058c41283a5d3d14776617c98c4cdaaf8e 100644
+index 10cbe71917bc32cca61748bcb0aa3395c554dbf8..37ca7b6b0fcee8bec12026ec3715dcc47400cc11 100644
--- a/src/main/java/org/bukkit/block/BlockState.java
+++ b/src/main/java/org/bukkit/block/BlockState.java
@@ -233,5 +233,34 @@ public interface BlockState extends Metadatable {
@@ -19,7 +19,7 @@ index 10cbe71917bc32cca61748bcb0aa3395c554dbf8..5be829058c41283a5d3d14776617c98c
+ * @return an immutable list of dropped items for the block state
+ */
+ @NotNull
-+ java.util.Collection<org.bukkit.inventory.ItemStack> getDrops();
++ [email protected] Collection<org.bukkit.inventory.ItemStack> getDrops();
+
+ /**
+ * Returns an immutable list of items which would drop by destroying this block state
@@ -29,7 +29,7 @@ index 10cbe71917bc32cca61748bcb0aa3395c554dbf8..5be829058c41283a5d3d14776617c98c
+ * @return an immutable list of dropped items for the block state
+ */
+ @NotNull
-+ java.util.Collection<org.bukkit.inventory.ItemStack> getDrops(@Nullable org.bukkit.inventory.ItemStack tool);
++ [email protected] Collection<org.bukkit.inventory.ItemStack> getDrops(@Nullable org.bukkit.inventory.ItemStack tool);
+
+ /**
+ * Returns an immutable list of items which would drop by the entity destroying this
@@ -40,7 +40,7 @@ index 10cbe71917bc32cca61748bcb0aa3395c554dbf8..5be829058c41283a5d3d14776617c98c
+ * @return an immutable list of dropped items for the block state
+ */
+ @NotNull
-+ java.util.Collection<org.bukkit.inventory.ItemStack> getDrops(@NotNull org.bukkit.inventory.ItemStack tool, @Nullable org.bukkit.entity.Entity entity);
++ [email protected] Collection<org.bukkit.inventory.ItemStack> getDrops(@NotNull org.bukkit.inventory.ItemStack tool, @Nullable org.bukkit.entity.Entity entity);
// Paper end
}
diff --git a/src/main/java/org/bukkit/block/data/BlockData.java b/src/main/java/org/bukkit/block/data/BlockData.java