public class BrewingStandFuelEvent extends BlockEvent implements Cancellable
Event.Resultblock| Constructor and Description | 
|---|
BrewingStandFuelEvent(@NotNull Block brewingStand,
                     @NotNull ItemStack fuel,
                     int fuelPower)  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull ItemStack | 
getFuel()
Gets the ItemStack of the fuel before the amount was subtracted. 
 | 
int | 
getFuelPower()
Gets the fuel power for this fuel. 
 | 
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
boolean | 
isCancelled()
Gets the cancellation state of this event. 
 | 
boolean | 
isConsuming()
Gets whether the brewing stand's fuel will be reduced / consumed or not. 
 | 
void | 
setCancelled(boolean cancel)
Sets the cancellation state of this event. 
 | 
void | 
setConsuming(boolean consuming)
Sets whether the brewing stand's fuel will be reduced / consumed or not. 
 | 
void | 
setFuelPower(int fuelPower)
Sets the fuel power for this fuel. 
 | 
getBlockcallEvent, getEventName, isAsynchronous@NotNull public @NotNull ItemStack getFuel()
public int getFuelPower()
public void setFuelPower(int fuelPower)
fuelPower - the fuel power for this fuelpublic boolean isConsuming()
public void setConsuming(boolean consuming)
consuming - whether the fuel will be reduced or notpublic boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2022. All rights reserved.