Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
SheepRegrowWoolEvent.java
1 package org.bukkit.event.entity;
2 
3 import org.bukkit.entity.Sheep;
6 
7 /**
8  * Called when a sheep regrows its wool
9  */
10 public class SheepRegrowWoolEvent extends EntityEvent implements Cancellable {
11  private static final HandlerList handlers = new HandlerList();
12  private boolean cancel;
13 
14  public SheepRegrowWoolEvent(final Sheep sheep) {
15  super(sheep);
16  this.cancel = false;
17  }
18 
19  public boolean isCancelled() {
20  return cancel;
21  }
22 
23  public void setCancelled(boolean cancel) {
24  this.cancel = cancel;
25  }
26 
27  @Override
28  public Sheep getEntity() {
29  return (Sheep) entity;
30  }
31 
32  @Override
33  public HandlerList getHandlers() {
34  return handlers;
35  }
36 
37  public static HandlerList getHandlerList() {
38  return handlers;
39  }
40 
41 }