Finish converting most of the undeprecated api to jspecify
This commit is contained in:
parent
29a25df60e
commit
0adf5876db
45 changed files with 782 additions and 718 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue