SPIGOT-7850: Add API for Bogged shear state

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2024-07-27 10:28:32 +10:00
parent d767353e69
commit 0611d599bd
3 changed files with 23 additions and 12 deletions

View File

@@ -0,0 +1,21 @@
package org.bukkit.entity;
/**
* Represents an entity which can be shorn with shears.
*/
public interface Shearable {
/**
* Gets whether the entity is in its sheared state.
*
* @return Whether the entity is sheared.
*/
boolean isSheared();
/**
* Sets whether the entity is in its sheared state.
*
* @param flag Whether to shear the entity
*/
void setSheared(boolean flag);
}