IdentifiableItem

data class IdentifiableItem(itemStack: ItemStack) : InventoryItem(source)

This class is used to create an IdentifiableItem which can be identified among any other ItemStack by a unique identifier, which is located in the ItemStack's org.bukkit.persistence.PersistentDataContainer.

Constructors

Link copied to clipboard
constructor(itemStack: ItemStack)

Functions

Link copied to clipboard
open override fun getItemStack(): ItemStack

Returns the ItemStack which can be used in any inventory, or given to a player

Link copied to clipboard
Link copied to clipboard
open override fun isMatching(itemStack: ItemStack): Boolean

Checks if the given ItemStack is matching with the itemStack. This is done by comparing the NamespacedKey of the itemStack and the ItemStack, which contains a specified UUID