Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
BrewEvent.java
Go to the documentation of this file.
1 package org.bukkit.event.inventory;
2 
3 import org.bukkit.block.Block;
4 import org.bukkit.event.Cancellable;
5 import org.bukkit.event.HandlerList;
6 import org.bukkit.event.block.BlockEvent;
7 import org.bukkit.inventory.BrewerInventory;
8 
9 public class BrewEvent extends BlockEvent implements Cancellable {
10  private static final HandlerList handlers = new HandlerList();
11  private BrewerInventory contents;
12  private boolean cancelled;
13 
14  public BrewEvent(Block brewer, BrewerInventory contents) {
15  super(brewer);
16  this.contents = contents;
17  }
18 
20  return contents;
21  }
22 
23  public boolean isCancelled() {
24  return cancelled;
25  }
26 
27  public void setCancelled(boolean cancel) {
28  cancelled = cancel;
29  }
30 
31  @Override
33  return handlers;
34  }
35 
36  public static HandlerList getHandlerList() {
37  return handlers;
38  }
39 }