Commits
Y2K_ authored and md_5 committed 50e8a00b9c5
1 1 | package org.bukkit.inventory.view; |
2 2 | |
3 + | import org.bukkit.inventory.AnvilInventory; |
3 4 | import org.bukkit.inventory.InventoryView; |
5 + | import org.jetbrains.annotations.NotNull; |
4 6 | import org.jetbrains.annotations.Nullable; |
5 7 | |
6 8 | /** |
7 9 | * An instance of {@link InventoryView} which provides extra methods related to |
8 10 | * anvil view data. |
9 11 | */ |
10 12 | public interface AnvilView extends InventoryView { |
11 13 | |
14 + | |
15 + | |
16 + | AnvilInventory getTopInventory(); |
17 + | |
12 18 | /** |
13 19 | * Gets the rename text specified within the anvil's text field. |
14 20 | * |
15 21 | * @return The text within the anvil's text field if an item is present |
16 22 | * otherwise null |
17 23 | */ |
18 24 | |
19 25 | String getRenameText(); |
20 26 | |
21 27 | /** |