Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
BrewEvent.java
1 package org.bukkit.event.inventory;
2 
3 import org.bukkit.block.Block;
8 
9 /**
10  * Called when the brewing of the contents inside the Brewing Stand is
11  * complete.
12  */
13 public class BrewEvent extends BlockEvent implements Cancellable {
14  private static final HandlerList handlers = new HandlerList();
15  private BrewerInventory contents;
16  private boolean cancelled;
17 
18  public BrewEvent(Block brewer, BrewerInventory contents) {
19  super(brewer);
20  this.contents = contents;
21  }
22 
23  /**
24  * Gets the contents of the Brewing Stand.
25  *
26  * @return the contents
27  */
29  return contents;
30  }
31 
32  public boolean isCancelled() {
33  return cancelled;
34  }
35 
36  public void setCancelled(boolean cancel) {
37  cancelled = cancel;
38  }
39 
40  @Override
41  public HandlerList getHandlers() {
42  return handlers;
43  }
44 
45  public static HandlerList getHandlerList() {
46  return handlers;
47  }
48 }
void setCancelled(boolean cancel)
Definition: BrewEvent.java:36