|
||||||||||
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.FurnaceSmeltEvent
public class FurnaceSmeltEvent
Called when an ItemStack is successfully smelted 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 | |
---|---|
FurnaceSmeltEvent(Block furnace,
ItemStack source,
ItemStack result)
|
Method Summary | |
---|---|
Block |
getFurnace()
Deprecated. In favour of BlockEvent.getBlock() . |
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
ItemStack |
getResult()
Gets the resultant ItemStack for this event |
ItemStack |
getSource()
Gets the smelted ItemStack for this event |
boolean |
isCancelled()
Gets the cancellation state of this event. |
void |
setCancelled(boolean cancel)
Sets the cancellation state of this event. |
void |
setResult(ItemStack result)
Sets the resultant ItemStack for 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 FurnaceSmeltEvent(Block furnace, ItemStack source, ItemStack result)
Method Detail |
---|
@Deprecated public Block getFurnace()
BlockEvent.getBlock()
.
public ItemStack getSource()
public ItemStack getResult()
public void setResult(ItemStack result)
result
- new result ItemStackpublic 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 |