Sheep, Shearing and EntityChangeBlock API

Discussion in 'Bukkit Preview' started by EvilSeph, Jan 24, 2012.

  1. Offline

    EvilSeph

    Implemented the following events:
    • Dying a sheep fires a SheepDyeWoolEvent that can be cancelled. You can also get/setColor to get or change the dye color.
    • Whenever a sheep regrows its wool, a SheepRegrowWoolEvent is fired that can be cancelled.
    • A player shearing a sheep or mooshroom fires a PlayerShearEntityEvent that can be cancelled.
    • Whenever a sheep eats (wild) grass, an EntityChangeBlockEvent is fired that can be cancelled. Along with the Block associated with the event, you also are given the Material the block is changing into.
    Notes:
    • Cancelling PlayerShearEntity might result in client-side artifacts, especially for Mooshrooms.
    • setColor() may produce client-side artifacts, but this is rare.
     

Share This Page