Uses of Interface
io.papermc.paper.datacomponent.DataComponentType.Valued
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.Valued in io.papermc.paper.datacomponent
Modifier and TypeFieldDescriptionstatic final DataComponentType.Valued
<ItemAttributeModifiers> DataComponentTypes.ATTRIBUTE_MODIFIERS
Holds attribute modifiers applied to any item, if not set, has an implicit default value based on the item type's default attributes (e.g.static final DataComponentType.Valued
<BannerPatternLayers> DataComponentTypes.BANNER_PATTERNS
Stores the additional patterns applied to a Banner or Shield.static final DataComponentType.Valued
<DyeColor> DataComponentTypes.BASE_COLOR
Stores the base color for a Shield.static final DataComponentType.Valued
<BlockItemDataProperties> DataComponentTypes.BLOCK_DATA
Holds block state properties to apply when placing a block.static final DataComponentType.Valued
<BundleContents> DataComponentTypes.BUNDLE_CONTENTS
Holds all items stored inside a Bundle.static final DataComponentType.Valued
<ItemAdventurePredicate> DataComponentTypes.CAN_BREAK
Controls which blocks a player in Adventure mode can break with this item.static final DataComponentType.Valued
<ItemAdventurePredicate> DataComponentTypes.CAN_PLACE_ON
Controls which blocks a player in Adventure mode can place on with this item.static final DataComponentType.Valued
<ChargedProjectiles> DataComponentTypes.CHARGED_PROJECTILES
Holds all projectiles that have been loaded into a Crossbow.static final DataComponentType.Valued
<Consumable> DataComponentTypes.CONSUMABLE
static final DataComponentType.Valued
<ItemContainerContents> DataComponentTypes.CONTAINER
Holds the contents of container blocks (Chests, Shulker Boxes) in item form.static final DataComponentType.Valued
<SeededContainerLoot> DataComponentTypes.CONTAINER_LOOT
Holds the unresolved loot table and seed of a container-like block.static final DataComponentType.Valued
<CustomModelData> DataComponentTypes.CUSTOM_MODEL_DATA
Controls the minecraft:custom_model_data property in the item model.static final DataComponentType.Valued
<Component> DataComponentTypes.CUSTOM_NAME
Custom name override for an item (as set by renaming with an Anvil).static final DataComponentType.Valued
<@NonNegative Integer> DataComponentTypes.DAMAGE
The amount of durability removed from an item, for damageable items (with theDataComponentTypes.MAX_DAMAGE
component), has an implicit default value of:0
.static final DataComponentType.Valued
<DamageResistant> DataComponentTypes.DAMAGE_RESISTANT
If present, this item will not burn in fire.static final DataComponentType.Valued
<DeathProtection> DataComponentTypes.DEATH_PROTECTION
static final DataComponentType.Valued
<DyedItemColor> DataComponentTypes.DYED_COLOR
Represents a color applied to a dyeable item (in theItemTypeTagKeys.DYEABLE
item tag).static final DataComponentType.Valued
<Enchantable> DataComponentTypes.ENCHANTABLE
static final DataComponentType.Valued
<Boolean> DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDE
Overrides the enchantment glint effect on an item.static final DataComponentType.Valued
<ItemEnchantments> DataComponentTypes.ENCHANTMENTS
Controls the enchantments on an item.static final DataComponentType.Valued
<Equippable> DataComponentTypes.EQUIPPABLE
static final DataComponentType.Valued
<FireworkEffect> DataComponentTypes.FIREWORK_EXPLOSION
Stores the explosion crafted in a Firework Star.static final DataComponentType.Valued
<Fireworks> DataComponentTypes.FIREWORKS
Stores all explosions crafted into a Firework Rocket, as well as flight duration.static final DataComponentType.Valued
<FoodProperties> DataComponentTypes.FOOD
Controls potential food benefits gained when consuming the item the component is applied on.static final DataComponentType.Valued
<MusicInstrument> DataComponentTypes.INSTRUMENT
Holds the instrument type used by a Goat Horn.static final DataComponentType.Valued
<Key> DataComponentTypes.ITEM_MODEL
static final DataComponentType.Valued
<Component> DataComponentTypes.ITEM_NAME
When present, replaces default item name with contained chat component.static final DataComponentType.Valued
<JukeboxPlayable> DataComponentTypes.JUKEBOX_PLAYABLE
List of recipes that should be unlocked when using the Knowledge Book item.static final DataComponentType.Valued
<LodestoneTracker> DataComponentTypes.LODESTONE_TRACKER
If present, specifies that the Compass is a Lodestone Compass.static final DataComponentType.Valued
<ItemLore> DataComponentTypes.LORE
Additional lines to include in an item's tooltip.static final DataComponentType.Valued
<MapItemColor> DataComponentTypes.MAP_COLOR
Represents the tint of the decorations on theItemType.FILLED_MAP
item.static final DataComponentType.Valued
<MapDecorations> DataComponentTypes.MAP_DECORATIONS
Holds a list of markers to be placed on aItemType.FILLED_MAP
(used for Explorer Maps).static final DataComponentType.Valued
<MapId> DataComponentTypes.MAP_ID
References the shared map state holding map contents and markers for aItemType.FILLED_MAP
.static final DataComponentType.Valued
<MapPostProcessing> DataComponentTypes.MAP_POST_PROCESSING
Internal map item state used in the map crafting recipe.static final DataComponentType.Valued
<@Positive Integer> DataComponentTypes.MAX_DAMAGE
Controls the maximum amount of damage than an item can take, if not present, the item cannot be damaged.static final DataComponentType.Valued
<@IntRange(from=1L,to=99L) Integer> DataComponentTypes.MAX_STACK_SIZE
Controls the maximum stacking size of this item.static final DataComponentType.Valued
<Key> DataComponentTypes.NOTE_BLOCK_SOUND
Controls the sound played by a Player Head when placed on a Note Block.static final DataComponentType.Valued
<OminousBottleAmplifier> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIER
Controls the amplifier amount for an Ominous Bottle's Bad Omen effect.static final DataComponentType.Valued
<PotDecorations> DataComponentTypes.POT_DECORATIONS
Stores the Sherds applied to each side of a Decorated Pot.static final DataComponentType.Valued
<PotionContents> DataComponentTypes.POTION_CONTENTS
Holds the contents of a potion (Potion, Splash Potion, Lingering Potion), or potion applied to a Tipped Arrow.static final DataComponentType.Valued
<ResolvableProfile> DataComponentTypes.PROFILE
Controls the skin displayed on a Player Head.static final DataComponentType.Valued
<ItemRarity> DataComponentTypes.RARITY
Controls the color of the item name.static final DataComponentType.Valued
<List<Key>> DataComponentTypes.RECIPES
static final DataComponentType.Valued
<@NonNegative Integer> DataComponentTypes.REPAIR_COST
The additional experience cost required to modify an item in an Anvil.static final DataComponentType.Valued
<Repairable> DataComponentTypes.REPAIRABLE
static final DataComponentType.Valued
<ItemEnchantments> DataComponentTypes.STORED_ENCHANTMENTS
Stores list of enchantments and their levels for an Enchanted Book.static final DataComponentType.Valued
<SuspiciousStewEffects> DataComponentTypes.SUSPICIOUS_STEW_EFFECTS
Holds the effects that will be applied when consuming Suspicious Stew.static final DataComponentType.Valued
<Tool> DataComponentTypes.TOOL
Controls the behavior of the item as a tool.static final DataComponentType.Valued
<Key> DataComponentTypes.TOOLTIP_STYLE
static final DataComponentType.Valued
<ItemArmorTrim> DataComponentTypes.TRIM
Holds the trims applied to an item in recipesstatic final DataComponentType.Valued
<Unbreakable> DataComponentTypes.UNBREAKABLE
If set, the item will not lose any durability when used.static final DataComponentType.Valued
<UseCooldown> DataComponentTypes.USE_COOLDOWN
static final DataComponentType.Valued
<UseRemainder> DataComponentTypes.USE_REMAINDER
static final DataComponentType.Valued
<WritableBookContent> DataComponentTypes.WRITABLE_BOOK_CONTENT
Holds the contents in a Book and Quill.static final DataComponentType.Valued
<WrittenBookContent> DataComponentTypes.WRITTEN_BOOK_CONTENT
Holds the contents and metadata of a Written Book. -
Uses of DataComponentType.Valued in org.bukkit
Modifier and TypeMethodDescription<T> T
Material.getDefaultData
(@NotNull DataComponentType.Valued<T> type) Gets the default value of the data component type for this item type. -
Uses of DataComponentType.Valued in org.bukkit.inventory
Modifier and TypeMethodDescription<T> T
ItemStack.getData
(@NotNull DataComponentType.Valued<T> type) Gets the value for the data component type on this stack.<T> T
ItemStack.getDataOrDefault
(@NotNull DataComponentType.Valued<? extends T> type, T fallback) Gets the value for the data component type on this stack with a fallback value.<T> T
ItemType.getDefaultData
(@NotNull DataComponentType.Valued<T> type) Gets the default value of the data component type for this item type.<T> void
ItemStack.setData
(@NotNull DataComponentType.Valued<T> type, DataComponentBuilder<T> valueBuilder) Sets the value of the data component type for this itemstack.<T> void
ItemStack.setData
(@NotNull DataComponentType.Valued<T> type, T value) Sets the value of the data component type for this itemstack.