Package org.bukkit.event.inventory
Class BrewingStandFuelEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
org.bukkit.event.inventory.BrewingStandFuelEvent
- All Implemented Interfaces:
- Cancellable
Called when an ItemStack is about to increase the fuel level of a brewing
 stand.
- 
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 TypeMethodDescriptiongetFuel()Gets the ItemStack of the fuel before the amount was subtracted.intGets the fuel power for this fuel.static HandlerListbooleanGets the cancellation state of this event.booleanGets whether the brewing stand's fuel will be reduced / consumed or not.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.voidsetConsuming(boolean consuming) Sets whether the brewing stand's fuel will be reduced / consumed or not.voidsetFuelPower(int fuelPower) Sets the fuel power for this fuel.Methods inherited from class org.bukkit.event.block.BlockEventgetBlockMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
BrewingStandFuelEvent
 
- 
- 
Method Details- 
getFuelGets the ItemStack of the fuel before the amount was subtracted.- Returns:
- the fuel ItemStack
 
- 
getFuelPowerpublic int getFuelPower()Gets the fuel power for this fuel. Each unit of power can fuel one brewing operation.- Returns:
- the fuel power for this fuel
 
- 
setFuelPowerpublic void setFuelPower(int fuelPower) Sets the fuel power for this fuel. Each unit of power can fuel one brewing operation.- Parameters:
- fuelPower- the fuel power for this fuel
 
- 
isConsumingpublic boolean isConsuming()Gets whether the brewing stand's fuel will be reduced / consumed or not.- Returns:
- whether the fuel will be reduced or not
 
- 
setConsumingpublic void setConsuming(boolean consuming) Sets whether the brewing stand's fuel will be reduced / consumed or not.- Parameters:
- consuming- whether the fuel will be reduced or not
 
- 
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
 
-