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 Type
    Method
    Description
    net.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

    • returnToMainMenu

      void returnToMainMenu(net.minecraft.world.entity.player.Player player, appeng.menu.ISubMenu subMenu)
      Returns to the primary user interface for this host. Used by sub-menus when players want to return to the previous screen.
    • 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.