Expand description
Vanilla data component definitions and registration.
This module defines all vanilla Minecraft data components and provides the registration function to add them to the registry.
Re-exportsยง
pub use crate::attribute::AttributeModifierOperation;pub use crate::equipment::EquipmentSlot;pub use crate::equipment::EquipmentSlotGroup;pub use super::components::ArmorTrim;pub use super::components::AttackRange;pub use super::components::BannerPatternLayer;pub use super::components::BannerPatternLayers;pub use super::components::BeehiveOccupant;pub use super::components::Bees;pub use super::components::BlockEntityData;pub use super::components::BlockItemStateProperties;pub use super::components::BlocksAttacks;pub use super::components::BundleContents;pub use super::components::ChargedProjectiles;pub use super::components::Consumable;pub use super::components::CustomData;pub use super::components::CustomModelData;pub use super::components::DamageReduction;pub use super::components::DamageResistant;pub use super::components::DamageTypeComponent;pub use super::components::DeathProtection;pub use super::components::DebugStickProperty;pub use super::components::DebugStickState;pub use super::components::DyedItemColor;pub use super::components::Enchantable;pub use super::components::EntityData;pub use super::components::Equippable;pub use super::components::EquippableAllowedEntities;pub use super::components::Filterable;pub use super::components::FireworkExplosion;pub use super::components::FireworkExplosionShape;pub use super::components::Fireworks;pub use super::components::FoodProperties;pub use super::components::GlobalPos;pub use super::components::InstrumentComponent;pub use super::components::InvalidEnchantableValue;pub use super::components::ItemAttributeModifierDisplay;pub use super::components::ItemAttributeModifierEntry;pub use super::components::ItemAttributeModifiers;pub use super::components::ItemContainerContents;pub use super::components::ItemDamageFunction;pub use super::components::ItemEnchantments;pub use super::components::ItemLore;pub use super::components::ItemLoreTooLong;pub use super::components::ItemUseAnimation;pub use super::components::JukeboxPlayable;pub use super::components::KineticWeapon;pub use super::components::KineticWeaponCondition;pub use super::components::LodestoneTracker;pub use super::components::MapDecorationEntry;pub use super::components::MapDecorations;pub use super::components::MapId;pub use super::components::MapItemColor;pub use super::components::MapPostProcessing;pub use super::components::OminousBottleAmplifier;pub use super::components::PaintingVariantComponent;pub use super::components::PiercingWeapon;pub use super::components::PotDecorations;pub use super::components::PotionContents;pub use super::components::ProvidesBannerPatterns;pub use super::components::ProvidesTrimMaterial;pub use super::components::Rarity;pub use super::components::Recipes;pub use super::components::Repairable;pub use super::components::SeededContainerLoot;pub use super::components::SulfurCubeContent;pub use super::components::SuspiciousStewEffect;pub use super::components::SuspiciousStewEffects;pub use super::components::SwingAnimation;pub use super::components::SwingAnimationType;pub use super::components::Tool;pub use super::components::ToolRule;pub use super::components::ToolRuleBlocks;pub use super::components::TooltipDisplay;pub use super::components::UseCooldown;pub use super::components::UseEffects;pub use super::components::UseRemainder;pub use super::components::Weapon;pub use super::components::WritableBookContent;pub use super::components::WrittenBookContent;pub use crate::ItemStackTemplate;pub use crate::cat_sound_variant::CatSoundVariant;pub use crate::cat_variant::CatVariant;pub use crate::chicken_sound_variant::ChickenSoundVariant;pub use crate::chicken_variant::ChickenVariant;pub use crate::cow_sound_variant::CowSoundVariant;pub use crate::cow_variant::CowVariant;pub use crate::frog_variant::FrogVariant;pub use crate::item_predicate::AdventureModePredicate;pub use crate::item_predicate::BlockPredicate;pub use crate::item_predicate::ItemPredicate;pub use crate::item_predicate::LockCode;pub use crate::pig_sound_variant::PigSoundVariant;pub use crate::pig_variant::PigVariant;pub use crate::resolvable_profile::PartialProfile;pub use crate::resolvable_profile::PlayerModelType;pub use crate::resolvable_profile::PlayerSkinPatch;pub use crate::resolvable_profile::ProfileProperty;pub use crate::resolvable_profile::ResolvableProfile;pub use crate::resolvable_profile::ResolvableProfileContents;pub use crate::resolvable_profile::StoredGameProfile;pub use crate::sound_event::SoundEventHolder;pub use crate::villager_type::VillagerType;pub use crate::wolf_sound_variant::WolfSoundVariant;pub use crate::wolf_variant::WolfVariant;pub use crate::zombie_nautilus_variant::ZombieNautilusVariant;pub use crate::AxolotlVariant;pub use crate::DyeColor;pub use crate::FoxVariant;pub use crate::HorseVariant;pub use crate::LlamaVariant;pub use crate::MooshroomVariant;pub use crate::ParrotVariant;pub use crate::RabbitVariant;pub use crate::RegistryReference;pub use crate::SalmonVariant;pub use crate::TropicalFishPattern;
Macrosยง
- register_
ranged_ ๐i32 - register_
stream_ ๐unit
Structsยง
- Data
Component Type - A typed handle for a data component.
Constantsยง
- ADDITIONAL_
TRADE_ COST - ATTACK_
RANGE - ATTRIBUTE_
MODIFIERS - AXOLOTL_
VARIANT - BANNER_
PATTERNS - BASE_
COLOR - BEES
- BLOCKS_
ATTACKS - BLOCK_
ENTITY_ DATA - BLOCK_
STATE - BREAK_
SOUND - BUCKET_
ENTITY_ DATA - BUNDLE_
CONTENTS - CAN_
BREAK - CAN_
PLACE_ ON - CAT_
COLLAR - CAT_
SOUND_ VARIANT - CAT_
VARIANT - CHARGED_
PROJECTILES - CHICKEN_
SOUND_ VARIANT - CHICKEN_
VARIANT - CONSUMABLE
- CONTAINER
- CONTAINER_
LOOT - COW_
SOUND_ VARIANT - COW_
VARIANT - CREATIVE_
SLOT_ LOCK - CUSTOM_
DATA - CUSTOM_
MODEL_ DATA - CUSTOM_
NAME - DAMAGE
- DAMAGE_
RESISTANT - DAMAGE_
TYPE - DEATH_
PROTECTION - DEBUG_
STICK_ STATE - DYE
- DYED_
COLOR - ENCHANTABLE
- ENCHANTMENTS
- ENCHANTMENT_
GLINT_ OVERRIDE - ENTITY_
DATA - EQUIPPABLE
- FIREWORKS
- FIREWORK_
EXPLOSION - FOOD
- FOX_
VARIANT - FROG_
VARIANT - GLIDER
- HORSE_
VARIANT - INSTRUMENT
- INTANGIBLE_
PROJECTILE - ITEM_
MODEL - ITEM_
NAME - JUKEBOX_
PLAYABLE - KINETIC_
WEAPON - LLAMA_
VARIANT - LOCK
- LODESTONE_
TRACKER - LORE
- MAP_
COLOR - MAP_
DECORATIONS - MAP_ID
- MAP_
POST_ PROCESSING - MAX_
DAMAGE - MAX_
STACK_ SIZE - MINIMUM_
ATTACK_ CHARGE - MOOSHROOM_
VARIANT - NOTE_
BLOCK_ SOUND - OMINOUS_
BOTTLE_ AMPLIFIER - PAINTING_
VARIANT - PARROT_
VARIANT - PIERCING_
WEAPON - PIG_
SOUND_ VARIANT - PIG_
VARIANT - POTION_
CONTENTS - POTION_
DURATION_ SCALE - POT_
DECORATIONS - PROFILE
- PROVIDES_
BANNER_ PATTERNS - PROVIDES_
TRIM_ MATERIAL - RABBIT_
VARIANT - RARITY
- RECIPES
- REPAIRABLE
- REPAIR_
COST - SALMON_
SIZE - SHEEP_
COLOR - SHULKER_
COLOR - STORED_
ENCHANTMENTS - SULFUR_
CUBE_ CONTENT - SUSPICIOUS_
STEW_ EFFECTS - SWING_
ANIMATION - TOOL
- TOOLTIP_
DISPLAY - TOOLTIP_
STYLE - TRIM
- TROPICAL_
FISH_ BASE_ COLOR - TROPICAL_
FISH_ PATTERN - TROPICAL_
FISH_ PATTERN_ COLOR - UNBREAKABLE
- USE_
COOLDOWN - USE_
EFFECTS - USE_
REMAINDER - VILLAGER_
VARIANT - WEAPON
- WOLF_
COLLAR - WOLF_
SOUND_ VARIANT - WOLF_
VARIANT - WRITABLE_
BOOK_ CONTENT - WRITTEN_
BOOK_ CONTENT - ZOMBIE_
NAUTILUS_ VARIANT
Functionsยง
- bool_
nbt_ ๐reader - bool_
nbt_ ๐writer - bool_
reader ๐ - bool_
writer ๐ - codec_
unit_ ๐network_ reader - codec_
unit_ ๐network_ writer - custom_
data_ ๐codec_ reader - custom_
data_ ๐writer - fireworks_
nbt_ ๐reader - fireworks_
nbt_ ๐writer - fireworks_
network_ ๐reader - fireworks_
network_ ๐writer - float_
reader ๐ - float_
writer ๐ - jukebox_
playable_ ๐nbt_ reader - jukebox_
playable_ ๐nbt_ writer - jukebox_
playable_ ๐network_ reader - jukebox_
playable_ ๐network_ writer - minimum_
attack_ ๐charge_ nbt_ reader - minimum_
attack_ ๐charge_ nbt_ writer - painting_
variant_ ๐nbt_ reader - painting_
variant_ ๐nbt_ writer - painting_
variant_ ๐network_ reader - painting_
variant_ ๐network_ writer - potion_
duration_ ๐scale_ nbt_ reader - potion_
duration_ ๐scale_ nbt_ writer - ranged_
i32_ ๐nbt_ reader - ranged_
i32_ ๐nbt_ writer - register_
vanilla_ data_ components - Registers all vanilla data components.
- text_
component_ ๐nbt_ reader - text_
component_ ๐nbt_ writer - text_
component_ ๐network_ reader - text_
component_ ๐network_ writer - unit_
nbt_ ๐reader - unit_
nbt_ ๐writer - unit_
reader ๐ - unit_
writer ๐ - varint_
reader ๐ - Network reader for VarInt-encoded i32 components.
- varint_
writer ๐ - Network writer for VarInt-encoded i32 components.