hasContainerValue

fun <Z : Any, T : Any> hasContainerValue(item: ItemStack, key: NamespacedKey, type: PersistentDataType<T, Z>): Boolean

Whether the item's PDC has key of the given type.


fun <Z : Any, T : Any> hasContainerValue(holder: PersistentDataHolder, key: NamespacedKey, type: PersistentDataType<T, Z>): Boolean

Whether the holder's PDC has key of the given type.