ResourcePack

interface ResourcePack

A resource pack that may be sent to clients.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory
Link copied to clipboard

The status of a resource pack.

Properties

Link copied to clipboard
@get:JvmName(name = "hash")
abstract val hash: String

The hash of the resource pack. This should be generated from hashing the resource that the uri points to.

Link copied to clipboard
abstract val isForced: Boolean

If clients must always display this resource pack.

Link copied to clipboard
@get:JvmName(name = "promptMessage")
abstract val promptMessage: Component?

The message that will be shown to the client within the prompt used to confirm the resource pack.

Link copied to clipboard
@get:JvmName(name = "uri")
abstract val uri: URI

The URI pointing to the location where this resource pack is from.