Skip to content

GUI Textures

Tip

In order to understand Nova's GUI textures and overlays, it might be beneficial for you to read our spigot thread on using the font renderer to render guis.

The GUITextures registered previously can simply be accessed by calling

val EXAMPLE_GUI = GUITexture.of(ExampleAddon, "example_gui")
you might then want to store them in a singleton object GUITexture, similar to blocks and items.

In order to use a gui texture, call the getTitle method on it, and use the resulting title for a GUI.
If you're making a TileEntityGUI, the GUITexture can be directly set in its constructor.