MinecraftFontAssetSource

Synchronous source of pack-relative files for an immutable font snapshot. Paths use forward slashes, including assets/namespace/path and optional pack.mcmeta. A loader retains neither this source nor any returned mutable collection or array. Implementations own no persistent open stream; callers must obey any source-specific thread contract. Custom sources must bound allocation inside their callbacks; loaders also validate returned sizes before copying. Implement MinecraftBoundedFontAssetSource to receive the current limits and stop while streaming or enumerating.

Inheritors

Properties

Link copied to clipboard
abstract val name: String

Stable diagnostic label, never used to choose provider behavior.

Functions

Link copied to clipboard
abstract fun paths(): Set<String>

Lists available canonical pack-relative file paths.

Link copied to clipboard
abstract fun read(path: String): ByteArray?

Reads one complete file without retaining a stream.