loadMinecraftUiImage

Loads one immutable UI image from the active resource manager.

The selected resource may come from the application Mod or any higher-priority resource pack. The stream and native image close before return, and the result retains only detached straight-ARGB pixels.

Return

immutable pixels with the selected resource's exact dimensions.

Parameters

asset

common identifier shared by client and server code.

Throws

when the resource is absent or has an empty axis.

when called away from the Minecraft client thread.

when the selected resource cannot be decoded.