Advancement

@Serializable
data class Advancement(val display: Advancement.Display? = null, val parent: String? = null, val criteria: Map<String, Advancement.Criterion>, val requirements: List<List<String>> = listOf(), val rewards: Advancement.Rewards? = null)(source)

Minecraft advancements

See also

Constructors

Link copied to clipboard
constructor(display: Advancement.Display? = null, parent: String? = null, criteria: Map<String, Advancement.Criterion>, requirements: List<List<String>> = listOf(), rewards: Advancement.Rewards? = null)

Types

Link copied to clipboard
@Serializable
data class Criterion(val trigger: String, val conditions: JsonObject? = null)
Link copied to clipboard
@Serializable
data class Display(val icon: Item, val title: String, val description: String, val frame: String = "task", val background: String? = null, val showToast: Boolean = true, val announceToChat: Boolean = true, val hidden: Boolean = false)
Link copied to clipboard
@Serializable
data class Rewards(val recipes: List<String> = listOf(), val loot: List<String> = listOf(), val experience: Int = 0, val function: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val parent: String? = null
Link copied to clipboard
Link copied to clipboard