return the title used for InventoryMenu
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user