Package org.bukkit.event.inventory
Class BrewEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.BrewEvent
- All Implemented Interfaces:
- Cancellable
Called when the brewing of the contents inside the Brewing Stand is
 complete.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.block.BlockEventblock
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the contents of the Brewing Stand.intGets the remaining fuel level.static @NotNull HandlerListGets the resulting items in the Brewing Stand.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
BrewEvent
 
- 
- 
Method Details- 
getContentsGets the contents of the Brewing Stand. Note: The brewer inventory still holds the items found prior to the finalization of the brewing process, e.g. the plain water bottles.- Returns:
- the contents
 
- 
getFuelLevelpublic int getFuelLevel()Gets the remaining fuel level.- Returns:
- the remaining fuel
 
- 
getResultsGets the resulting items in the Brewing Stand. The returned list, in case of a server-created event instance, is mutable. Any changes in the returned list will reflect in the brewing result if the event is not cancelled. If the size of the list is reduced, remaining items will be set to air.- Returns:
- List of ItemStackresulting for this operation
 
- 
isCancelledpublic boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-