Interface ITerminalHost
- All Superinterfaces:
IConfigurableObject, ISubMenuHost, IUpgradeableObject
- All Known Subinterfaces:
IPortableTerminal
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable StringAn optional hotkey used to close the terminal while its open.Please note that this will only be called once when the menu is opened.For hosts that do not have a fixed connection to the grid, this method is used to give feedback to the player about the current connection status.Methods inherited from interface IConfigurableObject
getConfigManagerMethods inherited from interface ISubMenuHost
getMainMenuIcon, returnToMainMenuMethods inherited from interface IUpgradeableObject
getInstalledUpgrades, getUpgrades, isUpgradedWith
-
Method Details
-
getInventory
MEStorage getInventory()Please note that this will only be called once when the menu is opened. If the inventory of this terminal host can change during its lifecycle, you need to return aSupplierStorage. -
getLinkStatus
ILinkStatus getLinkStatus()For hosts that do not have a fixed connection to the grid, this method is used to give feedback to the player about the current connection status. -
getCloseHotkey
An optional hotkey used to close the terminal while its open.- Returns:
- Hotkey id as it would be registered by
Hotkeys, or null if there isn't one
-