Skip to content

Commit 7eda77a

Browse files
committed
return the title used for InventoryMenu
1 parent 8da9064 commit 7eda77a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/org/spongepowered/api/item/inventory/menu/InventoryMenu.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ static InventoryMenu of(ViewableInventory inventory) {
7878
*/
7979
void setTitle(Component title);
8080

81+
/**
82+
* Returns the title of this menu if set.
83+
*
84+
* @return the title of this menu if set.
85+
*/
86+
Optional<Component> title();
87+
8188
/**
8289
* Registers click callbacks. Unregisters previously registered handler of the same type.
8390
* <p>Return false in the handler to prevent changes.</p>

0 commit comments

Comments
 (0)