return the title used for InventoryMenu

This commit is contained in:
Anselm Brehme committed 2022-04-16 18:07:50 +02:00
1 parent 8da906454a
commit 7eda77a21a
1 file changed
+7
@@ -78,6 +78,13 @@ public interface InventoryMenu {
*/
void setTitle(Component title);
/**
* Returns the title of this menu if set.
*
* @return the title of this menu if set.
*/
Optional<Component> title();
/**
* Registers click callbacks. Unregisters previously registered handler of the same type.
* <p>Return false in the handler to prevent changes.</p>