001    package org.bukkit.event.entity;
002    
003    import org.bukkit.entity.Sheep;
004    import org.bukkit.event.Cancellable;
005    import org.bukkit.event.HandlerList;
006    
007    /**
008     * Called when a sheep regrows its wool
009     */
010    public class SheepRegrowWoolEvent extends EntityEvent implements Cancellable {
011        private static final HandlerList handlers = new HandlerList();
012        private boolean cancel;
013    
014        public SheepRegrowWoolEvent(final Sheep sheep) {
015            super(sheep);
016            this.cancel = false;
017        }
018    
019        public boolean isCancelled() {
020            return cancel;
021        }
022    
023        public void setCancelled(boolean cancel) {
024            this.cancel = cancel;
025        }
026    
027        @Override
028        public Sheep getEntity() {
029            return (Sheep) entity;
030        }
031    
032        @Override
033        public HandlerList getHandlers() {
034            return handlers;
035        }
036    
037        public static HandlerList getHandlerList() {
038            return handlers;
039        }
040    
041    }