extractMinecraftUiProfile

Extracts the complete Minecraft UI profile from the active resource manager.

Every resource is acquired for this call only. Image streams and native images are closed after their pixels are copied, and the resulting common profile retains no Minecraft or native resource object. Active resource-pack font stacks, custom font files, and language font options are copied into an immutable font snapshot. The call belongs on the active Minecraft client thread; resource-manager and native-image failures escape without substitution.

Return

an immutable profile containing the active conforming GUI assets and resource fonts.

Throws

when a required resource, dimension, metadata contract, or font contract is invalid.

when called away from the Minecraft client thread.

when a required resource cannot be read.