ItemStackEnchantResponse

@Since(version = "2.2")
data class ItemStackEnchantResponse(val type: ItemStackEnchantResponseType, val enchantmentKey: NamespacedKey, val level: Int, val resultItem: ItemStack) : Keyed

A wrapper for responses for when an item is requested to be enchanted. A response type is provided explaining the result of the enchantment process, along with the passed enchantment values of requested key and requested level, and the (potentially unmodified) result item.

Constructors

Link copied to clipboard
constructor(type: ItemStackEnchantResponseType, enchantmentKey: NamespacedKey, level: Int, resultItem: ItemStack)

Properties

Link copied to clipboard
val enchantmentKey: NamespacedKey
Link copied to clipboard
val level: Int
Link copied to clipboard
val resultItem: ItemStack
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getKey(): NamespacedKey