Swap some nullable annotations (#10960)
This commit is contained in:
parent
1d3fc0ee68
commit
b99d071a36
10 changed files with 102 additions and 53 deletions
|
@ -5,7 +5,7 @@ Subject: [PATCH] Add more Witch API
|
|||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/entity/Witch.java b/src/main/java/org/bukkit/entity/Witch.java
|
||||
index 6618f2129e108c0a6cd15f6d0e86426021b6ff0d..4badeafe2f20cb123ef95897c90d5e61251cc40f 100644
|
||||
index 6618f2129e108c0a6cd15f6d0e86426021b6ff0d..e833250798e1811bd922c2335a113bf3468ec8a5 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Witch.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Witch.java
|
||||
@@ -2,6 +2,11 @@ package org.bukkit.entity;
|
||||
|
@ -20,7 +20,7 @@ index 6618f2129e108c0a6cd15f6d0e86426021b6ff0d..4badeafe2f20cb123ef95897c90d5e61
|
|||
/**
|
||||
* Represents a Witch
|
||||
*/
|
||||
@@ -13,4 +18,37 @@ public interface Witch extends Raider, RangedEntity { // Paper
|
||||
@@ -13,4 +18,38 @@ public interface Witch extends Raider, RangedEntity { // Paper
|
||||
* @return whether the witch is drinking a potion
|
||||
*/
|
||||
boolean isDrinkingPotion();
|
||||
|
@ -48,7 +48,8 @@ index 6618f2129e108c0a6cd15f6d0e86426021b6ff0d..4badeafe2f20cb123ef95897c90d5e61
|
|||
+ *
|
||||
+ * @return The potion the witch is drinking
|
||||
+ */
|
||||
+ @Nullable ItemStack getDrinkingPotion();
|
||||
+ @org.jetbrains.annotations.NotNull
|
||||
+ ItemStack getDrinkingPotion();
|
||||
+
|
||||
+ /**
|
||||
+ * Set the potion the Witch should drink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue