We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da9064 commit 7eda77aCopy full SHA for 7eda77a
src/main/java/org/spongepowered/api/item/inventory/menu/InventoryMenu.java
@@ -78,6 +78,13 @@ static InventoryMenu of(ViewableInventory inventory) {
78
*/
79
void setTitle(Component title);
80
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
+
88
/**
89
* Registers click callbacks. Unregisters previously registered handler of the same type.
90
* <p>Return false in the handler to prevent changes.</p>
0 commit comments