public interface ModPopupMenu
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ModPopupMenu.Action
The action when the menu button is clicked.
|
| Modifier and Type | Method and Description |
|---|---|
ModPopupMenu |
addMenuItem(java.lang.String label,
ModPopupMenu.Action action)
Adds a button with an action when clicked to the popup menu.
|
ModPopupMenu |
addMenuItemScreen(java.lang.String label,
net.minecraft.client.gui.screens.Screen screen)
Helper method to display a screen on top of the fullscreen map when a user clicks the option.
|
ModPopupMenu |
createSubItemList(java.lang.String label)
Creates a sublist popup menu.
|
ModPopupMenu addMenuItem(java.lang.String label, ModPopupMenu.Action action)
label - - The label, can be the display string or i18n key.action - - The action - this is an anonymous function, similar to Button.onPressModPopupMenu addMenuItemScreen(java.lang.String label, net.minecraft.client.gui.screens.Screen screen)
label - - The label, can be the display string or i18n key.screen - - The screen.ModPopupMenu createSubItemList(java.lang.String label)
label - - The label, can be the display string or i18n key.