Interface MobShearEvent

All Superinterfaces:
Cancellable, Event, MobEvent

public interface MobShearEvent extends MobEvent, Cancellable
Fired when a player is about to shear a mob ready for it: a sheep, a mooshroom, a sulfur cube holding a block.

Cancelling it leaves the mob as it is, and the shears are not worn. It does not fire for a plugin shearing the mob.

Since:
0.1.0
  • Method Details

    • mob

      Shearable mob()
      Returns the mob about to be sheared.
      Specified by:
      mob in interface MobEvent
      Returns:
      the mob about to be sheared
      Since:
      0.1.0
    • player

      Player player()
      Returns the player shearing it.
      Returns:
      the player shearing it
      Since:
      0.1.0
    • shears

      ItemStack shears()
      Returns the shears the player uses.
      Returns:
      the shears the player uses
      Since:
      0.1.0