Uses of Interface
io.papermc.paper.datacomponent.DataComponentType
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes involved in manipulating player inventories and item interactions.
-
Uses of DataComponentType in io.papermc.paper.datacomponent
Modifier and TypeInterfaceDescriptionstatic interface
static interface
-
Uses of DataComponentType in io.papermc.paper.registry
Modifier and TypeFieldDescriptionstatic final RegistryKey
<DataComponentType> RegistryKey.DATA_COMPONENT_TYPE
Built-in registry for data component types. -
Uses of DataComponentType in org.bukkit
Modifier and TypeFieldDescriptionstatic final Registry
<DataComponentType> Registry.DATA_COMPONENT_TYPE
Modifier and TypeMethodDescriptionMaterial.getDefaultDataTypes()
Gets the default data component types for this item type.Modifier and TypeMethodDescriptionboolean
Material.hasDefaultData
(@NotNull DataComponentType type) Checks if the data component type has a default value for this item type. -
Uses of DataComponentType in org.bukkit.inventory
Modifier and TypeMethodDescriptionItemStack.getDataTypes()
Gets all the data component types set on this stack.ItemType.getDefaultDataTypes()
Gets the default data component types for this item type.Modifier and TypeMethodDescriptionboolean
ItemStack.hasData
(@NotNull DataComponentType type) Checks if the data component type is set on the itemstack.boolean
ItemType.hasDefaultData
(@NotNull DataComponentType type) Checks if the data component type has a default value for this item type.boolean
ItemStack.isDataOverridden
(@NotNull DataComponentType type) Checks if the data component type is overridden from the default for the item type.void
ItemStack.resetData
(@NotNull DataComponentType type) Resets the value of this component to be the default value for the item type fromMaterial.getDefaultData(io.papermc.paper.datacomponent.DataComponentType.Valued)
.void
ItemStack.unsetData
(@NotNull DataComponentType type) Marks this data component as removed for this itemstack.Modifier and TypeMethodDescriptionboolean
ItemStack.matchesWithoutData
(@NotNull ItemStack item, Set<@NotNull DataComponentType> excludeTypes) Checks if this itemstack matches another given itemstack excluding the provided components.boolean
ItemStack.matchesWithoutData
(@NotNull ItemStack item, Set<@NotNull DataComponentType> excludeTypes, boolean ignoreCount) Checks if this itemstack matches another given itemstack excluding the provided components.