001 package org.bukkit.event.inventory; 002 003 import org.bukkit.block.Block; 004 import org.bukkit.event.Cancellable; 005 import org.bukkit.event.HandlerList; 006 import org.bukkit.event.block.BlockEvent; 007 import org.bukkit.inventory.BrewerInventory; 008 009 /** 010 * Called when the brewing of the contents inside the Brewing Stand is 011 * complete. 012 */ 013 public class BrewEvent extends BlockEvent implements Cancellable { 014 private static final HandlerList handlers = new HandlerList(); 015 private BrewerInventory contents; 016 private boolean cancelled; 017 018 public BrewEvent(Block brewer, BrewerInventory contents) { 019 super(brewer); 020 this.contents = contents; 021 } 022 023 /** 024 * Gets the contents of the Brewing Stand. 025 * 026 * @return the contents 027 */ 028 public BrewerInventory getContents() { 029 return contents; 030 } 031 032 public boolean isCancelled() { 033 return cancelled; 034 } 035 036 public void setCancelled(boolean cancel) { 037 cancelled = cancel; 038 } 039 040 @Override 041 public HandlerList getHandlers() { 042 return handlers; 043 } 044 045 public static HandlerList getHandlerList() { 046 return handlers; 047 } 048 }