of

@Contract(value = "_, _, _, _ -> new", pure = true)
fun of(uri: URI, hash: String, isForced: Boolean, promptMessage: Component?): ResourcePack

Creates a new resource pack with the given values.

Parameters

uri

the URI

hash

the hash of the resource at the URI

isForced

if the resource pack must be used by all clients

promptMessage

the message sent with the prompt to accept the pack