Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.inventory.FurnaceSmeltEvent Class Reference
Inheritance diagram for org.bukkit.event.inventory.FurnaceSmeltEvent:
org.bukkit.event.block.BlockEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 FurnaceSmeltEvent (final Block furnace, final ItemStack source, final ItemStack result)
 
Block getFurnace ()
 
ItemStack getSource ()
 
ItemStack getResult ()
 
void setResult (ItemStack result)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.block.BlockEvent
Block block
 

Detailed Description

Called when an ItemStack is successfully smelted in a furnace.

Definition at line 12 of file FurnaceSmeltEvent.java.

Member Function Documentation

Block org.bukkit.event.inventory.FurnaceSmeltEvent.getFurnace ( )

Gets the block for the furnace involved in this event

Returns
the block of the furnace
Deprecated:
In favour of getBlock().

Definition at line 32 of file FurnaceSmeltEvent.java.

References org.bukkit.event.block.BlockEvent.getBlock().

32  {
33  return getBlock();
34  }
ItemStack org.bukkit.event.inventory.FurnaceSmeltEvent.getResult ( )

Gets the resultant ItemStack for this event

Returns
smelting result ItemStack

Definition at line 50 of file FurnaceSmeltEvent.java.

50  {
51  return result;
52  }
ItemStack org.bukkit.event.inventory.FurnaceSmeltEvent.getSource ( )

Gets the smelted ItemStack for this event

Returns
smelting source ItemStack

Definition at line 41 of file FurnaceSmeltEvent.java.

41  {
42  return source;
43  }
boolean org.bukkit.event.inventory.FurnaceSmeltEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 63 of file FurnaceSmeltEvent.java.

63  {
64  return cancelled;
65  }
void org.bukkit.event.inventory.FurnaceSmeltEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 67 of file FurnaceSmeltEvent.java.

67  {
68  this.cancelled = cancel;
69  }
void org.bukkit.event.inventory.FurnaceSmeltEvent.setResult ( ItemStack  result)

Sets the resultant ItemStack for this event

Parameters
resultnew result ItemStack

Definition at line 59 of file FurnaceSmeltEvent.java.

59  {
60  this.result = result;
61  }

The documentation for this class was generated from the following file: