mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 16:42:03 -07:00
Finish converting most of the undeprecated api to jspecify
This commit is contained in:
@@ -15,11 +15,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+import org.bukkit.Sound;
|
||||
+import org.bukkit.entity.Entity;
|
||||
+import org.bukkit.inventory.ItemStack;
|
||||
+import org.jetbrains.annotations.NotNull;
|
||||
+import org.jspecify.annotations.NullMarked;
|
||||
+
|
||||
+/**
|
||||
+ * Represents an entity that can be bucketed.
|
||||
+ */
|
||||
+@NullMarked
|
||||
+public interface Bucketable extends Entity {
|
||||
+
|
||||
+ /**
|
||||
@@ -41,7 +42,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ *
|
||||
+ * @return bucket form
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ ItemStack getBaseBucketItem();
|
||||
+
|
||||
+ /**
|
||||
@@ -49,7 +49,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * is picked up in a bucket.
|
||||
+ * @return bucket pickup sound
|
||||
+ */
|
||||
+ @NotNull
|
||||
+ Sound getPickupSound();
|
||||
+}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Axolotl.java b/src/main/java/org/bukkit/entity/Axolotl.java
|
||||
|
Reference in New Issue
Block a user