build

suspend fun build(id: Key, sendToPlayers: Boolean = true, extraListener: Audience? = null)

Builds and uploads the resource pack with the specified id.

If sendToPlayers is true, the pack will also be sent to all online players that have the pack enabled.

If extraListener is not null, the log output of the build session will be forwarded to it.

Throws