001 package org.bukkit.event.inventory; 002 003 import org.bukkit.Material; 004 import org.bukkit.block.Block; 005 import org.bukkit.entity.Player; 006 import org.bukkit.event.block.BlockExpEvent; 007 008 /** 009 * This event is called when a player takes items out of the furnace 010 */ 011 public class FurnaceExtractEvent extends BlockExpEvent { 012 private final Player player; 013 private final Material itemType; 014 private final int itemAmount; 015 016 public FurnaceExtractEvent(Player player, Block block, Material itemType, int itemAmount, int exp) { 017 super(block, exp); 018 this.player = player; 019 this.itemType = itemType; 020 this.itemAmount = itemAmount; 021 } 022 023 /** 024 * Get the player that triggered the event 025 * 026 * @return the relevant player 027 */ 028 public Player getPlayer() { 029 return player; 030 } 031 032 /** 033 * Get the Material of the item being retrieved 034 * 035 * @return the material of the item 036 */ 037 public Material getItemType() { 038 return itemType; 039 } 040 041 /** 042 * Get the item count being retrieved 043 * 044 * @return the amount of the item 045 */ 046 public int getItemAmount() { 047 return itemAmount; 048 } 049 }