Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Data components

Generated from the 26.3 decompile by tools/gen_reference.py. Do not edit by hand.

Every DataComponentType registered in DataComponents. Persistent types have a Codec and are written to disk; a type without one is transient (DataComponentType.isTransient), never saved but sent like the rest. Every type crosses the wire: the on the wire column says whether it declares its own StreamCodec or is sent as NBT through the one DataComponentType.Builder.build derives from its Codec, and a type with neither cannot be built. Cached persistent codecs share one EncoderCache. See Data components.

122 components

idvalue typepersistenton the wire
custom_data (DataComponents.CUSTOM_DATA)CustomDatayesNBT, through its Codec
max_stack_size (DataComponents.MAX_STACK_SIZE)Integeryesits own StreamCodec
max_damage (DataComponents.MAX_DAMAGE)Integeryesits own StreamCodec
damage (DataComponents.DAMAGE)Integeryesits own StreamCodec
unbreakable (DataComponents.UNBREAKABLE)Unityesits own StreamCodec
use_effects (DataComponents.USE_EFFECTS)UseEffectsyesits own StreamCodec
custom_name (DataComponents.CUSTOM_NAME)Componentyes (cached)its own StreamCodec
minimum_attack_charge (DataComponents.MINIMUM_ATTACK_CHARGE)Floatyesits own StreamCodec
damage_type (DataComponents.DAMAGE_TYPE)Holder<…>yesits own StreamCodec
item_name (DataComponents.ITEM_NAME)Componentyes (cached)its own StreamCodec
item_model (DataComponents.ITEM_MODEL)Identifieryes (cached)its own StreamCodec
lore (DataComponents.LORE)ItemLoreyes (cached)its own StreamCodec
rarity (DataComponents.RARITY)Rarityyesits own StreamCodec
enchantments (DataComponents.ENCHANTMENTS)ItemEnchantmentsyes (cached)its own StreamCodec
can_place_on (DataComponents.CAN_PLACE_ON)AdventureModePredicateyes (cached)its own StreamCodec
can_break (DataComponents.CAN_BREAK)AdventureModePredicateyes (cached)its own StreamCodec
attribute_modifiers (DataComponents.ATTRIBUTE_MODIFIERS)ItemAttributeModifiersyes (cached)its own StreamCodec
custom_model_data (DataComponents.CUSTOM_MODEL_DATA)CustomModelDatayesits own StreamCodec
tooltip_display (DataComponents.TOOLTIP_DISPLAY)TooltipDisplayyes (cached)its own StreamCodec
repair_cost (DataComponents.REPAIR_COST)Integeryesits own StreamCodec
creative_slot_lock (DataComponents.CREATIVE_SLOT_LOCK)Unitits own StreamCodec
enchantment_glint_override (DataComponents.ENCHANTMENT_GLINT_OVERRIDE)Booleanyesits own StreamCodec
intangible_projectile (DataComponents.INTANGIBLE_PROJECTILE)UnityesNBT, through its Codec
food (DataComponents.FOOD)FoodPropertiesyes (cached)its own StreamCodec
consumable (DataComponents.CONSUMABLE)Consumableyes (cached)its own StreamCodec
use_remainder (DataComponents.USE_REMAINDER)UseRemainderyes (cached)its own StreamCodec
use_cooldown (DataComponents.USE_COOLDOWN)UseCooldownyes (cached)its own StreamCodec
damage_resistant (DataComponents.DAMAGE_RESISTANT)DamageResistantyes (cached)its own StreamCodec
tool (DataComponents.TOOL)Toolyes (cached)its own StreamCodec
weapon (DataComponents.WEAPON)Weaponyes (cached)its own StreamCodec
attack_range (DataComponents.ATTACK_RANGE)AttackRangeyes (cached)its own StreamCodec
enchantable (DataComponents.ENCHANTABLE)Enchantableyes (cached)its own StreamCodec
equippable (DataComponents.EQUIPPABLE)Equippableyes (cached)its own StreamCodec
repairable (DataComponents.REPAIRABLE)Repairableyes (cached)its own StreamCodec
glider (DataComponents.GLIDER)Unityesits own StreamCodec
tooltip_style (DataComponents.TOOLTIP_STYLE)Identifieryes (cached)its own StreamCodec
death_protection (DataComponents.DEATH_PROTECTION)DeathProtectionyes (cached)its own StreamCodec
blocks_attacks (DataComponents.BLOCKS_ATTACKS)BlocksAttacksyes (cached)its own StreamCodec
piercing_weapon (DataComponents.PIERCING_WEAPON)PiercingWeaponyes (cached)its own StreamCodec
kinetic_weapon (DataComponents.KINETIC_WEAPON)KineticWeaponyes (cached)its own StreamCodec
attack_animation (DataComponents.ATTACK_ANIMATION)SwingAnimationyesits own StreamCodec
interact_animation (DataComponents.INTERACT_ANIMATION)SwingAnimationyesits own StreamCodec
additional_trade_cost (DataComponents.ADDITIONAL_TRADE_COST)Integerits own StreamCodec
block_transformer (DataComponents.BLOCK_TRANSFORMER)Holder<…>yes (cached)its own StreamCodec
villager_food (DataComponents.VILLAGER_FOOD)VillagerFoodyesits own StreamCodec
stored_enchantments (DataComponents.STORED_ENCHANTMENTS)ItemEnchantmentsyes (cached)its own StreamCodec
dye (DataComponents.DYE)DyeColoryesits own StreamCodec
dyed_color (DataComponents.DYED_COLOR)DyedItemColoryesits own StreamCodec
map_id (DataComponents.MAP_ID)MapIdyesits own StreamCodec
map_decorations (DataComponents.MAP_DECORATIONS)MapDecorationsyes (cached)NBT, through its Codec
map_post_processing (DataComponents.MAP_POST_PROCESSING)MapPostProcessingits own StreamCodec
charged_projectiles (DataComponents.CHARGED_PROJECTILES)ChargedProjectilesyes (cached)its own StreamCodec
bundle_contents (DataComponents.BUNDLE_CONTENTS)BundleContentsyes (cached)its own StreamCodec
potion_contents (DataComponents.POTION_CONTENTS)PotionContentsyes (cached)its own StreamCodec
potion_duration_scale (DataComponents.POTION_DURATION_SCALE)Floatyes (cached)its own StreamCodec
suspicious_stew_effects (DataComponents.SUSPICIOUS_STEW_EFFECTS)SuspiciousStewEffectsyes (cached)its own StreamCodec
writable_book_content (DataComponents.WRITABLE_BOOK_CONTENT)WritableBookContentyes (cached)its own StreamCodec
written_book_content (DataComponents.WRITTEN_BOOK_CONTENT)WrittenBookContentyes (cached)its own StreamCodec
trim (DataComponents.TRIM)ArmorTrimyes (cached)its own StreamCodec
debug_stick_state (DataComponents.DEBUG_STICK_STATE)DebugStickStateyes (cached)NBT, through its Codec
entity_data (DataComponents.ENTITY_DATA)TypedEntityData<…>yesits own StreamCodec
bucket_entity_data (DataComponents.BUCKET_ENTITY_DATA)CustomDatayesits own StreamCodec
block_entity_data (DataComponents.BLOCK_ENTITY_DATA)TypedEntityData<…>yesits own StreamCodec
instrument (DataComponents.INSTRUMENT)InstrumentComponentyes (cached)its own StreamCodec
provides_trim_material (DataComponents.PROVIDES_TRIM_MATERIAL)Holder<…>yes (cached)its own StreamCodec
ominous_bottle_amplifier (DataComponents.OMINOUS_BOTTLE_AMPLIFIER)OminousBottleAmplifieryesits own StreamCodec
jukebox_playable (DataComponents.JUKEBOX_PLAYABLE)JukeboxPlayableyesits own StreamCodec
provides_banner_patterns (DataComponents.PROVIDES_BANNER_PATTERNS)HolderSet<…>yes (cached)its own StreamCodec
recipes (DataComponents.RECIPES)List<…>yes (cached)NBT, through its Codec
lodestone_tracker (DataComponents.LODESTONE_TRACKER)LodestoneTrackeryes (cached)its own StreamCodec
firework_explosion (DataComponents.FIREWORK_EXPLOSION)FireworkExplosionyes (cached)its own StreamCodec
fireworks (DataComponents.FIREWORKS)Fireworksyes (cached)its own StreamCodec
profile (DataComponents.PROFILE)ResolvableProfileyes (cached)its own StreamCodec
note_block_sound (DataComponents.NOTE_BLOCK_SOUND)Identifieryesits own StreamCodec
banner_patterns (DataComponents.BANNER_PATTERNS)BannerPatternLayersyes (cached)its own StreamCodec
base_color (DataComponents.BASE_COLOR)DyeColoryesits own StreamCodec
pot_decorations (DataComponents.POT_DECORATIONS)PotDecorationsyes (cached)its own StreamCodec
container (DataComponents.CONTAINER)ItemContainerContentsyes (cached)its own StreamCodec
block_state (DataComponents.BLOCK_STATE)BlockItemStatePropertiesyes (cached)its own StreamCodec
bees (DataComponents.BEES)Beesyes (cached)its own StreamCodec
sulfur_cube_content (DataComponents.SULFUR_CUBE_CONTENT)SulfurCubeContentyes (cached)its own StreamCodec
lock (DataComponents.LOCK)LockCodeyesNBT, through its Codec
container_loot (DataComponents.CONTAINER_LOOT)SeededContainerLootyesNBT, through its Codec
break_sound (DataComponents.BREAK_SOUND)Holder<…>yes (cached)its own StreamCodec
compostable (DataComponents.COMPOSTABLE)Compostableyesits own StreamCodec
cooking_fuel (DataComponents.COOKING_FUEL)CookingFuelyesits own StreamCodec
brewing_fuel (DataComponents.BREWING_FUEL)BrewingFuelyesits own StreamCodec
mob_visibility (DataComponents.MOB_VISIBILITY)MobVisibilityyesits own StreamCodec
villager/variant (DataComponents.VILLAGER_VARIANT)Holder<…>yesits own StreamCodec
wolf/variant (DataComponents.WOLF_VARIANT)Holder<…>yesits own StreamCodec
wolf/sound_variant (DataComponents.WOLF_SOUND_VARIANT)Holder<…>yesits own StreamCodec
wolf/collar (DataComponents.WOLF_COLLAR)DyeColoryesits own StreamCodec
fox/variant (DataComponents.FOX_VARIANT)Fox.Variantyesits own StreamCodec
salmon/size (DataComponents.SALMON_SIZE)Salmon.Variantyesits own StreamCodec
parrot/variant (DataComponents.PARROT_VARIANT)Parrot.Variantyesits own StreamCodec
tropical_fish/pattern (DataComponents.TROPICAL_FISH_PATTERN)TropicalFish.Patternyesits own StreamCodec
tropical_fish/base_color (DataComponents.TROPICAL_FISH_BASE_COLOR)DyeColoryesits own StreamCodec
tropical_fish/pattern_color (DataComponents.TROPICAL_FISH_PATTERN_COLOR)DyeColoryesits own StreamCodec
mooshroom/variant (DataComponents.MOOSHROOM_VARIANT)MushroomCow.Variantyesits own StreamCodec
rabbit/variant (DataComponents.RABBIT_VARIANT)Rabbit.Variantyesits own StreamCodec
pig/variant (DataComponents.PIG_VARIANT)Holder<…>yesits own StreamCodec
pig/sound_variant (DataComponents.PIG_SOUND_VARIANT)Holder<…>yesits own StreamCodec
cow/variant (DataComponents.COW_VARIANT)Holder<…>yesits own StreamCodec
cow/sound_variant (DataComponents.COW_SOUND_VARIANT)Holder<…>yesits own StreamCodec
chicken/variant (DataComponents.CHICKEN_VARIANT)Holder<…>yesits own StreamCodec
chicken/sound_variant (DataComponents.CHICKEN_SOUND_VARIANT)Holder<…>yesits own StreamCodec
zombie_nautilus/variant (DataComponents.ZOMBIE_NAUTILUS_VARIANT)Holder<…>yesits own StreamCodec
frog/variant (DataComponents.FROG_VARIANT)Holder<…>yesits own StreamCodec
horse/variant (DataComponents.HORSE_VARIANT)Variantyesits own StreamCodec
painting/variant (DataComponents.PAINTING_VARIANT)Holder<…>yesits own StreamCodec
llama/variant (DataComponents.LLAMA_VARIANT)Llama.Variantyesits own StreamCodec
axolotl/variant (DataComponents.AXOLOTL_VARIANT)Axolotl.Variantyesits own StreamCodec
cat/variant (DataComponents.CAT_VARIANT)Holder<…>yesits own StreamCodec
cat/sound_variant (DataComponents.CAT_SOUND_VARIANT)Holder<…>yesits own StreamCodec
cat/collar (DataComponents.CAT_COLLAR)DyeColoryesits own StreamCodec
sheep/color (DataComponents.SHEEP_COLOR)DyeColoryesits own StreamCodec
shulker/color (DataComponents.SHULKER_COLOR)DyeColoryesits own StreamCodec
provides_pottery_pattern (DataComponents.PROVIDES_POTTERY_PATTERN)Holder<…>yesits own StreamCodec
sign_text_front (DataComponents.SIGN_TEXT_FRONT)SignTextyes (cached)its own StreamCodec
sign_text_back (DataComponents.SIGN_TEXT_BACK)SignTextyes (cached)its own StreamCodec
waxed (DataComponents.WAXED)Unityesits own StreamCodec
cushion/color (DataComponents.CUSHION_COLOR)DyeColoryesits own StreamCodec