Config Tabs
MyoConfigTab is the record used to describe a tab in the Myotus terminal settings UI.
What this line exposes
Section titled “What this line exposes”In 1.20.1, a config tab definition contains:
- a title component
- either a texture blitter or an
ItemStackicon - a
stylePathpointing at the active screen style JSON - a
MyoConfigTabScreenimplementation used to build the tab UI
Example
Section titled “Example”MyotusAPI.get().configRegistrar().terminalConfigTab(new MyoConfigTab( Component.literal("Example"), Icon.COG, "example_terminal.json", new ExampleConfigScreen()));Icon options
Section titled “Icon options”MyoConfigTab supports multiple icon shapes:
- AE2
Icon - Myotus
MyoIcon - plain
ItemStack
What this line does not include
Section titled “What this line does not include”The Forge line does not include:
MyoConfigTabVisibilityMyoConfigTabContext- the
visibleWhen()copy helper - bulk registration helpers on
IConfigRegistrar
If you need conditional visibility on 1.20.1, gate the registration yourself before calling terminalConfigTab(tab).
Style path
Section titled “Style path”The stylePath should point at the relevant screen style JSON. In the inspected source tree, Myotus itself registers a tab backed by:
assets/ae2/screens/config/myotus.jsonWhat Myotus registers for itself
Section titled “What Myotus registers for itself”MyotusConfigTab.initialize() runs during common setup and registers the built-in terminal settings tab with:
- translated title text
- the Myotus icon set
myotus.jsonas the style pathMyotusConfigScreenas the screen implementation
The screen currently exposes the keybinding editor, while the bug-report button lives in the terminal settings toolbar.