mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 13:24:17 -07:00
[Bleeding] CraftItemEvent.getInventory() now returns CraftingInventory for convenience.
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.bukkit.event.inventory;
|
||||
|
||||
import org.bukkit.event.inventory.InventoryType.SlotType;
|
||||
import org.bukkit.inventory.CraftingInventory;
|
||||
import org.bukkit.inventory.InventoryView;
|
||||
import org.bukkit.inventory.Recipe;
|
||||
|
||||
@@ -18,4 +19,9 @@ public class CraftItemEvent extends InventoryClickEvent {
|
||||
public Recipe getRecipe() {
|
||||
return recipe;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CraftingInventory getInventory() {
|
||||
return (CraftingInventory) super.getInventory();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user