Interface Shearable

All Known Subinterfaces:
Bogged, Sheep

@Deprecated(forRemoval=true, since="1.21") public interface Shearable
Deprecated, for removal: This API element is subject to removal in a future version.
Spigots shearable API miserably fails at capturing all entities that may be sheared by a player, like mushroom cows which, once sheared, convert into normal cows. For such entities, methods like setSheared(boolean) or isSheared() make no sense, making this API and interface dead API from the get-go.
Represents an entity which can be shorn with shears.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    void
    setSheared(boolean flag)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Use Shearable.shear() instead if applicable.
  • Method Details

    • isSheared

      @Deprecated(forRemoval=true, since="1.21") boolean isSheared()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets whether the entity is in its sheared state.
      Returns:
      Whether the entity is sheared.
    • setSheared

      @Deprecated(forRemoval=true, since="1.21") void setSheared(boolean flag)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Use Shearable.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