SmelteryEvent

The Smeltery Event is an event called when a block is smelted using Smeltery.

Description
The SmelteryEvent is a class that adds four local variables: the drop ItemStack that gets the item being dropped, the changeTo material that is the type the drop should change to, the fortune boolean that states whether fortune should apply to the drops, and an exp int that says how much experience should drop from the event.

Constructor
SmelteryEvent(Block block, Player player, ItemStack drop, Material changeTo, int exp, boolean fortune)
 * // Block block - the broken block
 * // Player player - the player who broke the block
 * // ItemStack drop - the normal drop from the block
 * // Material changeTo - the material Smeltery will change the drop to
 * // int exp - the exp dropped from the event
 * // boolean fortune - whether fortune should apply to the drops - only set to true by default for iron and gold ore

Implements
None

Extends
ESBlockBreakEvent

Material getChangeTo
Gets the material to change the drop to

void setChangeTo(Material changeTo)
Sets the material to the specified value

boolean willFortune
Whether fortune will apply to the drops

void setFortune(boolean fortune)
Sets whether fortune will apply to the drops to the specified value

int getExp
Gets the experience gained from smelting this block

void setExp(int exp)
Sets the experience gained from smelting this block to the specified value

ItemStack getDrop
Gets the original drop from the block