Package org.bukkit.entity
Interface Shearable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents an entity which can be shorn with shears.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated, for removal: This API element is subject to removal in a future version.UseShearable.readyToBeSheared()
instead.void
setSheared
(boolean flag) Deprecated, for removal: This API element is subject to removal in a future version.UseShearable.shear()
instead if applicable.
-
Method Details
-
isSheared
Deprecated, for removal: This API element is subject to removal in a future version.UseShearable.readyToBeSheared()
instead.Gets whether the entity is in its sheared state.- Returns:
- Whether the entity is sheared.
-
setSheared
Deprecated, for removal: This API element is subject to removal in a future version.UseShearable.shear()
instead if applicable. Some entities cannot be "unsheared".Sets whether the entity is in its sheared state.- Parameters:
flag
- Whether to shear the entity
-
setSheared(boolean)
orisSheared()
make no sense, making this API and interface dead API from the get-go.