mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
Tadpole lock API (#8297)
This commit is contained in:
@@ -896,6 +896,32 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
*/
|
||||
-public interface Salmon extends Fish { }
|
||||
+public interface Salmon extends io.papermc.paper.entity.SchoolableFish { } // Paper - Schooling Fish API
|
||||
diff --git a/src/main/java/org/bukkit/entity/Tadpole.java b/src/main/java/org/bukkit/entity/Tadpole.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Tadpole.java
|
||||
+++ b/src/main/java/org/bukkit/entity/Tadpole.java
|
||||
@@ -0,0 +0,0 @@ public interface Tadpole extends Fish {
|
||||
* @param age New age
|
||||
*/
|
||||
public void setAge(int age);
|
||||
+
|
||||
+ // Paper start - Tadpole age lock api
|
||||
+ /**
|
||||
+ * Lock the age of the animal, setting this will prevent the animal from
|
||||
+ * maturing.
|
||||
+ *
|
||||
+ * @param lock new lock
|
||||
+ */
|
||||
+ void setAgeLock(boolean lock);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the current agelock.
|
||||
+ *
|
||||
+ * @return the current agelock
|
||||
+ */
|
||||
+ boolean getAgeLock();
|
||||
+ // Paper end
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/entity/Trident.java b/src/main/java/org/bukkit/entity/Trident.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/entity/Trident.java
|
||||
|
Reference in New Issue
Block a user