SPIGOT-5380, SPIGOT-6958, #772: Add some missing entity API

By: Ollie <69084614+olijeffers0n@users.noreply.github.com>
This commit is contained in:
Bukkit/Spigot
2022-07-21 21:01:23 +10:00
parent 8c38fbb68a
commit ecc4ce98ab
8 changed files with 169 additions and 3 deletions

View File

@@ -3,4 +3,19 @@ package org.bukkit.entity;
/**
* Represents a turtle.
*/
public interface Turtle extends Animals { }
public interface Turtle extends Animals {
/**
* Gets whether the turtle has an egg
*
* @return Whether the turtle has an egg
*/
boolean hasEgg();
/**
* Gets whether the turtle is laying an egg
*
* @return Whether the turtle is laying an egg
*/
boolean isLayingEgg();
}