geforkt von Mirrors/Paper
Add Unmodifiable annotations to getDrops methods (#8440)
Dieser Commit ist enthalten in:
Ursprung
3ef916da77
Commit
68ca16f075
@ -19,7 +19,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @return an immutable list of dropped items for the block state
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ java.util.Collection<org.bukkit.inventory.ItemStack> getDrops();
|
||||
+ java.util.@org.jetbrains.annotations.Unmodifiable 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 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @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);
|
||||
+ java.util.@org.jetbrains.annotations.Unmodifiable 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 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @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);
|
||||
+ java.util.@org.jetbrains.annotations.Unmodifiable 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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren