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<Axolotl.Variant> DataComponentTypes.AXOLOTL_VARIANTstatic 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<BlocksAttacks> DataComponentTypes.BLOCKS_ATTACKSstatic final DataComponentType.Valued<Key> DataComponentTypes.BREAK_SOUNDstatic 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<DyeColor> DataComponentTypes.CAT_COLLARstatic final DataComponentType.Valued<Cat.Type> DataComponentTypes.CAT_VARIANTstatic final DataComponentType.Valued<ChargedProjectiles> DataComponentTypes.CHARGED_PROJECTILESHolds all projectiles that have been loaded into a Crossbow.static final DataComponentType.Valued<Chicken.Variant> DataComponentTypes.CHICKEN_VARIANTstatic 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<Cow.Variant> DataComponentTypes.COW_VARIANTstatic 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<Fox.Type> DataComponentTypes.FOX_VARIANTstatic final DataComponentType.Valued<Frog.Variant> DataComponentTypes.FROG_VARIANTstatic final DataComponentType.Valued<Horse.Color> DataComponentTypes.HORSE_VARIANTstatic 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<Llama.Color> DataComponentTypes.LLAMA_VARIANTstatic 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<MushroomCow.Variant> DataComponentTypes.MOOSHROOM_VARIANTstatic 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<Art> DataComponentTypes.PAINTING_VARIANTstatic final DataComponentType.Valued<Parrot.Variant> DataComponentTypes.PARROT_VARIANTstatic final DataComponentType.Valued<Pig.Variant> DataComponentTypes.PIG_VARIANTstatic 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<Float> DataComponentTypes.POTION_DURATION_SCALEstatic final DataComponentType.Valued<ResolvableProfile> DataComponentTypes.PROFILEControls the skin displayed on a Player Head.static final DataComponentType.Valued<TagKey<PatternType>> DataComponentTypes.PROVIDES_BANNER_PATTERNSstatic final DataComponentType.Valued<TrimMaterial> DataComponentTypes.PROVIDES_TRIM_MATERIALstatic final DataComponentType.Valued<Rabbit.Type> DataComponentTypes.RABBIT_VARIANTstatic 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<Salmon.Variant> DataComponentTypes.SALMON_SIZEstatic final DataComponentType.Valued<DyeColor> DataComponentTypes.SHEEP_COLORstatic final DataComponentType.Valued<DyeColor> DataComponentTypes.SHULKER_COLORstatic 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<TooltipDisplay> DataComponentTypes.TOOLTIP_DISPLAYstatic final DataComponentType.Valued<Key> DataComponentTypes.TOOLTIP_STYLEstatic final DataComponentType.Valued<ItemArmorTrim> DataComponentTypes.TRIMHolds the trims applied to an item in recipesstatic final DataComponentType.Valued<DyeColor> DataComponentTypes.TROPICAL_FISH_BASE_COLORstatic final DataComponentType.Valued<TropicalFish.Pattern> DataComponentTypes.TROPICAL_FISH_PATTERNstatic final DataComponentType.Valued<DyeColor> DataComponentTypes.TROPICAL_FISH_PATTERN_COLORstatic final DataComponentType.Valued<UseCooldown> DataComponentTypes.USE_COOLDOWNstatic final DataComponentType.Valued<UseRemainder> DataComponentTypes.USE_REMAINDERstatic final DataComponentType.Valued<Villager.Type> DataComponentTypes.VILLAGER_VARIANTstatic final DataComponentType.Valued<Weapon> DataComponentTypes.WEAPONstatic final DataComponentType.Valued<DyeColor> DataComponentTypes.WOLF_COLLARstatic final DataComponentType.Valued<Wolf.SoundVariant> DataComponentTypes.WOLF_SOUND_VARIANTstatic final DataComponentType.Valued<Wolf.Variant> DataComponentTypes.WOLF_VARIANTstatic 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.Methods in io.papermc.paper.datacomponent with parameters of type DataComponentType.ValuedModifier and TypeMethodDescription<T> @Nullable TDataComponentView.getData(DataComponentType.Valued<T> type) Gets the value for the data component type on this stack.<T> @Nullable TDataComponentView.getDataOrDefault(DataComponentType.Valued<? extends T> type, @Nullable T fallback) Gets the value for the data component type on this holder with a fallback value.<T> voidDataComponentHolder.setData(DataComponentType.Valued<T> type, DataComponentBuilder<T> valueBuilder) Sets the value of the data component type for this holder.<T> voidDataComponentHolder.setData(DataComponentType.Valued<T> type, T value) Sets the value of the data component type for this holder. -
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> @Nullable TItemType.getDefaultData(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.