ThemeBackground

sealed interface ThemeBackground : Closeable

Inheritors

Types

Link copied to clipboard
class Image(metadata: ThemeMetadata, image: NativeImage) : ThemeBackground

Background implementation that renders a static image texture.

Link copied to clipboard

Returns false to let Minecraft render its default wallpaper.

Link copied to clipboard

Background implementation that renders using a custom shader.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun draw(context: GuiGraphics, width: Int, height: Int, mouseX: Int, mouseY: Int, delta: Float): Boolean

Draws the background on the screen.

Link copied to clipboard
open fun onResourceReload()

Called when resources are reloaded.