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

@@ -90,4 +90,21 @@ public interface Zombie extends Monster, Ageable {
* @param time new conversion time
*/
void setConversionTime(int time);
/**
* Gets whether this zombie can break doors
*
* @return Whether this zombie can break doors
*/
boolean canBreakDoors();
/**
* Sets whether this zombie can break doors
*
* This will be ignored if the entity is a Drowned. Will also stop the action if
* the entity is currently breaking a door.
*
* @param flag Whether this zombie can break doors
*/
void setCanBreakDoors(boolean flag);
}