Uses of Interface
io.papermc.paper.datacomponent.DataComponentType.Valued
Packages that use 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
Fields in io.papermc.paper.datacomponent declared as DataComponentType.ValuedModifier and TypeFieldDescriptionstatic final DataComponentType.Valued<ItemAttributeModifiers> DataComponentTypes.ATTRIBUTE_MODIFIERSHolds 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_PATTERNSStores the additional patterns applied to a Banner or Shield.static final DataComponentType.Valued<DyeColor> DataComponentTypes.BASE_COLORStores the base color for a Shield.static final DataComponentType.Valued<BlockItemDataProperties> DataComponentTypes.BLOCK_DATAHolds block state properties to apply when placing a block.static final DataComponentType.Valued<BundleContents> DataComponentTypes.BUNDLE_CONTENTSHolds all items stored inside a Bundle.static final DataComponentType.Valued<ItemAdventurePredicate> DataComponentTypes.CAN_BREAKControls which blocks a player in Adventure mode can break with this item.static final DataComponentType.Valued<ItemAdventurePredicate> DataComponentTypes.CAN_PLACE_ONControls which blocks a player in Adventure mode can place on with this item.static final DataComponentType.Valued<ChargedProjectiles> DataComponentTypes.CHARGED_PROJECTILESHolds all projectiles that have been loaded into a Crossbow.static final DataComponentType.Valued<Consumable> DataComponentTypes.CONSUMABLEstatic final DataComponentType.Valued<ItemContainerContents> DataComponentTypes.CONTAINERHolds the contents of container blocks (Chests, Shulker Boxes) in item form.static final DataComponentType.Valued<SeededContainerLoot> DataComponentTypes.CONTAINER_LOOTHolds the unresolved loot table and seed of a container-like block.static final DataComponentType.Valued<CustomModelData> DataComponentTypes.CUSTOM_MODEL_DATAControls the minecraft:custom_model_data property in the item model.static final DataComponentType.Valued<Component> DataComponentTypes.CUSTOM_NAMECustom name override for an item (as set by renaming with an Anvil).static final DataComponentType.Valued<@NonNegative Integer> DataComponentTypes.DAMAGEThe amount of durability removed from an item, for damageable items (with theDataComponentTypes.MAX_DAMAGEcomponent), has an implicit default value of:0.static final DataComponentType.Valued<DamageResistant> DataComponentTypes.DAMAGE_RESISTANTIf present, this item will not take damage from the specified damage types.static final DataComponentType.Valued<DeathProtection> DataComponentTypes.DEATH_PROTECTIONstatic final DataComponentType.Valued<DyedItemColor> DataComponentTypes.DYED_COLORRepresents a color applied to a dyeable item (in theItemTypeTagKeys.DYEABLEitem tag).static final DataComponentType.Valued<Enchantable> DataComponentTypes.ENCHANTABLEstatic final DataComponentType.Valued<Boolean> DataComponentTypes.ENCHANTMENT_GLINT_OVERRIDEOverrides the enchantment glint effect on an item.static final DataComponentType.Valued<ItemEnchantments> DataComponentTypes.ENCHANTMENTSControls the enchantments on an item.static final DataComponentType.Valued<Equippable> DataComponentTypes.EQUIPPABLEstatic final DataComponentType.Valued<FireworkEffect> DataComponentTypes.FIREWORK_EXPLOSIONStores the explosion crafted in a Firework Star.static final DataComponentType.Valued<Fireworks> DataComponentTypes.FIREWORKSStores all explosions crafted into a Firework Rocket, as well as flight duration.static final DataComponentType.Valued<FoodProperties> DataComponentTypes.FOODControls potential food benefits gained when consuming the item the component is applied on.static final DataComponentType.Valued<MusicInstrument> DataComponentTypes.INSTRUMENTHolds the instrument type used by a Goat Horn.static final DataComponentType.Valued<Key> DataComponentTypes.ITEM_MODELstatic final DataComponentType.Valued<Component> DataComponentTypes.ITEM_NAMEWhen present, replaces default item name with contained chat component.static final DataComponentType.Valued<JukeboxPlayable> DataComponentTypes.JUKEBOX_PLAYABLEstatic final DataComponentType.Valued<LodestoneTracker> DataComponentTypes.LODESTONE_TRACKERIf present, specifies that the Compass is a Lodestone Compass.static final DataComponentType.Valued<ItemLore> DataComponentTypes.LOREAdditional lines to include in an item's tooltip.static final DataComponentType.Valued<MapItemColor> DataComponentTypes.MAP_COLORRepresents the tint of the decorations on theItemType.FILLED_MAPitem.static final DataComponentType.Valued<MapDecorations> DataComponentTypes.MAP_DECORATIONSHolds a list of markers to be placed on aItemType.FILLED_MAP(used for Explorer Maps).static final DataComponentType.Valued<MapId> DataComponentTypes.MAP_IDReferences the shared map state holding map contents and markers for aItemType.FILLED_MAP.static final DataComponentType.Valued<MapPostProcessing> DataComponentTypes.MAP_POST_PROCESSINGInternal map item state used in the map crafting recipe.static final DataComponentType.Valued<@Positive Integer> DataComponentTypes.MAX_DAMAGEControls 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_SIZEControls the maximum stacking size of this item.static final DataComponentType.Valued<Key> DataComponentTypes.NOTE_BLOCK_SOUNDControls the sound played by a Player Head when placed on a Note Block.static final DataComponentType.Valued<OminousBottleAmplifier> DataComponentTypes.OMINOUS_BOTTLE_AMPLIFIERControls the amplifier amount for an Ominous Bottle's Bad Omen effect.static final DataComponentType.Valued<PotDecorations> DataComponentTypes.POT_DECORATIONSStores the Sherds applied to each side of a Decorated Pot.static final DataComponentType.Valued<PotionContents> DataComponentTypes.POTION_CONTENTSHolds the contents of a potion (Potion, Splash Potion, Lingering Potion), or potion applied to a Tipped Arrow.static final DataComponentType.Valued<ResolvableProfile> DataComponentTypes.PROFILEControls the skin displayed on a Player Head.static final DataComponentType.Valued<ItemRarity> DataComponentTypes.RARITYControls the color of the item name.static final DataComponentType.Valued<List<Key>> DataComponentTypes.RECIPESList of recipes that should be unlocked when using the Knowledge Book item.static final DataComponentType.Valued<@NonNegative Integer> DataComponentTypes.REPAIR_COSTThe additional experience cost required to modify an item in an Anvil.static final DataComponentType.Valued<Repairable> DataComponentTypes.REPAIRABLEstatic final DataComponentType.Valued<ItemEnchantments> DataComponentTypes.STORED_ENCHANTMENTSStores list of enchantments and their levels for an Enchanted Book.static final DataComponentType.Valued<SuspiciousStewEffects> DataComponentTypes.SUSPICIOUS_STEW_EFFECTSHolds the effects that will be applied when consuming Suspicious Stew.static final DataComponentType.Valued<Tool> DataComponentTypes.TOOLControls the behavior of the item as a tool.static final DataComponentType.Valued<Key> DataComponentTypes.TOOLTIP_STYLEstatic final DataComponentType.Valued<ItemArmorTrim> DataComponentTypes.TRIMHolds the trims applied to an item in recipesstatic final DataComponentType.Valued<Unbreakable> DataComponentTypes.UNBREAKABLEIf set, the item will not lose any durability when used.static final DataComponentType.Valued<UseCooldown> DataComponentTypes.USE_COOLDOWNstatic final DataComponentType.Valued<UseRemainder> DataComponentTypes.USE_REMAINDERstatic final DataComponentType.Valued<WritableBookContent> DataComponentTypes.WRITABLE_BOOK_CONTENTHolds the contents in a Book and Quill.static final DataComponentType.Valued<WrittenBookContent> DataComponentTypes.WRITTEN_BOOK_CONTENTHolds the contents and metadata of a Written Book. -
Uses of DataComponentType.Valued in org.bukkit
Methods in org.bukkit with parameters of type DataComponentType.ValuedModifier and TypeMethodDescription<T> TMaterial.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
Methods in org.bukkit.inventory with parameters of type DataComponentType.ValuedModifier and TypeMethodDescription<T> TItemStack.getData(@NotNull DataComponentType.Valued<T> type) Gets the value for the data component type on this stack.<T> TItemStack.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> TItemType.getDefaultData(@NotNull DataComponentType.Valued<T> type) Gets the default value of the data component type for this item type.<T> voidItemStack.setData(@NotNull DataComponentType.Valued<T> type, DataComponentBuilder<T> valueBuilder) Sets the value of the data component type for this itemstack.<T> voidItemStack.setData(@NotNull DataComponentType.Valued<T> type, T value) Sets the value of the data component type for this itemstack.