Commits
Julian v.d Berkmortel authored and md_5 committed 14883d6b17f
1 + | package org.bukkit.event.inventory; |
2 + | |
3 + | import org.bukkit.inventory.InventoryView; |
4 + | import org.bukkit.inventory.SmithingInventory; |
5 + | import org.jetbrains.annotations.NotNull; |
6 + | |
7 + | /** |
8 + | * Called when the recipe of an Item is completed inside a smithing table. |
9 + | */ |
10 + | public class SmithItemEvent extends InventoryClickEvent { |
11 + | |
12 + | public SmithItemEvent( InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action) { |
13 + | super(view, type, slot, click, action); |
14 + | } |
15 + | |
16 + | public SmithItemEvent( InventoryView view, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key) { |
17 + | super(view, type, slot, click, action, key); |
18 + | } |
19 + | |
20 + | |
21 + | |
22 + | public SmithingInventory getInventory() { |
23 + | return (SmithingInventory) super.getInventory(); |
24 + | } |
25 + | } |