public class FurnaceBurnEvent extends BlockEvent implements Cancellable
Event.Result
block
Constructor and Description |
---|
FurnaceBurnEvent(@NotNull Block furnace,
@NotNull ItemStack fuel,
int burnTime) |
Modifier and Type | Method and Description |
---|---|
int |
getBurnTime()
Gets the burn time for this fuel
|
@NotNull ItemStack |
getFuel()
Gets the fuel ItemStack for this event
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
boolean |
isBurning()
Gets whether the furnace's fuel is burning or not.
|
boolean |
isCancelled()
Gets the cancellation state of this event.
|
void |
setBurning(boolean burning)
Sets whether the furnace's fuel is burning or not.
|
void |
setBurnTime(int burnTime)
Sets the burn time for this fuel
|
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event.
|
void |
setConsumeFuel(boolean consumeFuel)
Sets whether the furnace's fuel will be consumed or not.
|
boolean |
willConsumeFuel()
Gets whether the furnace's fuel will be consumed or not.
|
getBlock
callEvent, getEventName, isAsynchronous
@NotNull public @NotNull ItemStack getFuel()
public int getBurnTime()
public void setBurnTime(int burnTime)
burnTime
- the burn time for this fuelpublic boolean isBurning()
public void setBurning(boolean burning)
burning
- true if the furnace's fuel is burningpublic boolean willConsumeFuel()
public void setConsumeFuel(boolean consumeFuel)
consumeFuel
- true to consume the fuelpublic boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this event@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.