Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
FurnaceExtractEvent.java
1 package org.bukkit.event.inventory;
2 
3 import org.bukkit.Material;
4 import org.bukkit.block.Block;
5 import org.bukkit.entity.Player;
7 
8 /**
9  * This event is called when a player takes items out of the furnace
10  */
11 public class FurnaceExtractEvent extends BlockExpEvent {
12  private final Player player;
13  private final Material itemType;
14  private final int itemAmount;
15 
16  public FurnaceExtractEvent(Player player, Block block, Material itemType, int itemAmount, int exp) {
17  super(block, exp);
18  this.player = player;
19  this.itemType = itemType;
20  this.itemAmount = itemAmount;
21  }
22 
23  /**
24  * Get the player that triggered the event
25  *
26  * @return the relevant player
27  */
28  public Player getPlayer() {
29  return player;
30  }
31 
32  /**
33  * Get the Material of the item being retrieved
34  *
35  * @return the material of the item
36  */
37  public Material getItemType() {
38  return itemType;
39  }
40 
41  /**
42  * Get the item count being retrieved
43  *
44  * @return the amount of the item
45  */
46  public int getItemAmount() {
47  return itemAmount;
48  }
49 }