|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.block.BlockEvent org.bukkit.event.inventory.FurnaceBurnEvent
public class FurnaceBurnEvent
Called when an ItemStack is successfully burned as fuel in a furnace.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary |
---|
Fields inherited from class org.bukkit.event.block.BlockEvent |
---|
block |
Constructor Summary | |
---|---|
FurnaceBurnEvent(Block furnace,
ItemStack fuel,
int burnTime)
|
Method Summary | |
---|---|
int |
getBurnTime()
Gets the burn time for this fuel |
ItemStack |
getFuel()
Gets the fuel ItemStack for this event |
Block |
getFurnace()
Deprecated. In favour of BlockEvent.getBlock() . |
static HandlerList |
getHandlerList()
|
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. |
Methods inherited from class org.bukkit.event.block.BlockEvent |
---|
getBlock |
Methods inherited from class org.bukkit.event.Event |
---|
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FurnaceBurnEvent(Block furnace, ItemStack fuel, int burnTime)
Method Detail |
---|
@Deprecated public Block getFurnace()
BlockEvent.getBlock()
.
public 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 isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |