ContainerDefaultGuiTextureRegistry

object ContainerDefaultGuiTextureRegistry : ClientModInitializer(source)

Texture paths for Minecraft containers.

To register your mod's containers' default GUI textures, create a custom field named optigui:container_default_textures. It must be a JSON object. They keys are the container IDs, and the values are the default GUI textures.

Functions

Link copied to clipboard
operator fun contains(container: Identifier): Boolean

Checks if the default GUI texture of a container is known.

Link copied to clipboard
operator fun get(container: Identifier): Identifier?

Gets the default GUI texture of the given container, or null, if it's unknown.

Link copied to clipboard
open override fun onInitializeClient()