Class MultiversionUi.Registration
java.lang.Object
dev.xichil.mvui.MultiversionUi.Registration
- Enclosing class:
MultiversionUi
One successful
MultiversionUi.register(String, Text, ScreenFactory) call: a mod id, its display name and its guarded menu. Immutable. Obtained from
MultiversionUi.menus(); mods don't create these.-
Method Summary
Modifier and TypeMethodDescriptionmenu()The menu, wrapped byFailsafe: not the object the mod passed, but one that delegates to it and turns only this mod's menu off when the mod's code fails.modId()The id of the mod that registered the menu, as passed toMultiversionUi.register(String, Text, ScreenFactory).name()What the list of mod menus shows for this mod: thenamepassed toMultiversionUi.register(String, Text, ScreenFactory).toString()The mod id.
-
Method Details
-
modId
The id of the mod that registered the menu, as passed toMultiversionUi.register(String, Text, ScreenFactory).- Returns:
- the registering mod's id
-
name
What the list of mod menus shows for this mod: thenamepassed toMultiversionUi.register(String, Text, ScreenFactory).- Returns:
- the text shown for this mod in the list of mod menus
-
toString
-