Package appeng.api.storage
Interface ISubMenuHost
- All Known Subinterfaces:
IPortableTerminal
,ITerminalHost
public interface ISubMenuHost
Implemented by objects that open a menu, which then opens a submenu. It's used to determine how to return to the main
menu from a submenu.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.item.ItemStack
Gets the icon to represent the host of the submenu.void
returnToMainMenu
(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu) Returns to the primary user interface for this host.
-
Method Details
-
getMainMenuIcon
net.minecraft.world.item.ItemStack getMainMenuIcon()Gets the icon to represent the host of the submenu. Used as the icon for the back button.