Commits

Y2K_ authored and md_5 committed 50e8a00b9c5
#1064: Add specific getTopInventory methods for InventoryView derivatives
No tags

src/main/java/org/bukkit/inventory/view/AnvilView.java

Modified
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 + @NotNull
15 + @Override
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 @Nullable
19 25 String getRenameText();
20 26
21 27 /**

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut