#[non_exhaustive]pub enum SlotComponentData {
Show 112 variants
CustomData(AnonNbt),
MaxStackSize(i32),
MaxDamage(i32),
Damage(i32),
Unbreakable,
UseEffects(SlotComponentDataUseEffects),
CustomName(AnonNbt),
MinimumAttackCharge(f32),
DamageType(i32),
ItemName(AnonNbt),
ItemModel(ByteString),
Lore(Vec<AnonNbt>),
Rarity(SlotComponentDataRarity),
Enchantments(SlotComponentDataEnchantments),
StoredEnchantments(SlotComponentDataStoredEnchantments),
CanPlaceOn(SlotComponentDataCanPlaceOn),
CanBreak(SlotComponentDataCanBreak),
AttributeModifiers(Vec<SlotComponentDataAttributeModifiers>),
CustomModelData(SlotComponentDataCustomModelData),
TooltipDisplay(SlotComponentDataTooltipDisplay),
RepairCost(i32),
CreativeSlotLock,
EnchantmentGlintOverride(bool),
IntangibleProjectile(AnonNbt),
BlocksAttacks(SlotComponentDataBlocksAttacks),
Food(SlotComponentDataFood),
Consumable(SlotComponentDataConsumable),
UseRemainder(ItemStackTemplate),
UseCooldown(SlotComponentDataUseCooldown),
DamageResistant(SlotComponentDataDamageResistant),
Tool(SlotComponentDataTool),
Weapon(SlotComponentDataWeapon),
AttackRange(SlotComponentDataAttackRange),
Enchantable(i32),
Equippable(SlotComponentDataEquippable),
Repairable(SlotComponentDataRepairable),
Glider,
TooltipStyle(ByteString),
DeathProtection(SlotComponentDataDeathProtection),
PiercingWeapon(SlotComponentDataPiercingWeapon),
KineticWeapon(SlotComponentDataKineticWeapon),
SwingAnimation(SlotComponentDataSwingAnimation),
AdditionalTradeCost(i32),
Dye(DyeColor),
DyedColor(i32),
MapColor(i32),
MapId(i32),
MapDecorations(AnonNbt),
MapPostProcessing(i32),
PotionDurationScale(f32),
ChargedProjectiles(SlotComponentDataChargedProjectiles),
BundleContents(SlotComponentDataBundleContents),
PotionContents(SlotComponentDataPotionContents),
SuspiciousStewEffects(SlotComponentDataSuspiciousStewEffects),
WritableBookContent(SlotComponentDataWritableBookContent),
WrittenBookContent(SlotComponentDataWrittenBookContent),
Trim(SlotComponentDataTrim),
DebugStickState(AnonNbt),
EntityData(SlotComponentDataEntityData),
BlockEntityData(SlotComponentDataBlockEntityData),
BucketEntityData(AnonNbt),
Instrument(Holder<InstrumentData>),
ProvidesTrimMaterial(Holder<ArmorTrimMaterial>),
OminousBottleAmplifier(i32),
JukeboxPlayable(Holder<JukeboxSongData>),
ProvidesBannerPatterns(HolderSet),
Recipes(AnonNbt),
LodestoneTracker(SlotComponentDataLodestoneTracker),
FireworkExplosion(ItemFireworkExplosion),
Fireworks(SlotComponentDataFireworks),
Profile(ResolvableProfile),
NoteBlockSound(ByteString),
BannerPatterns(SlotComponentDataBannerPatterns),
BaseColor(DyeColor),
PotDecorations(SlotComponentDataPotDecorations),
Container(SlotComponentDataContainer),
BlockState(SlotComponentDataBlockState),
Bees(SlotComponentDataBees),
Lock(AnonNbt),
ContainerLoot(AnonNbt),
BreakSound(Holder<ItemSoundEvent>),
VillagerVariant(i32),
WolfVariant(i32),
WolfSoundVariant(i32),
WolfCollar(DyeColor),
FoxVariant(i32),
SalmonSize(i32),
ParrotVariant(i32),
TropicalFishPattern(i32),
TropicalFishBaseColor(DyeColor),
TropicalFishPatternColor(DyeColor),
MooshroomVariant(i32),
RabbitVariant(i32),
PigVariant(i32),
PigSoundVariant(i32),
CowVariant(i32),
CowSoundVariant(i32),
ChickenVariant(i32),
ChickenSoundVariant(i32),
ZombieNautilusVariant(i32),
FrogVariant(i32),
HorseVariant(i32),
PaintingVariant(Holder<EntityMetadataPaintingVariant>),
LlamaVariant(i32),
AxolotlVariant(i32),
CatVariant(i32),
CatSoundVariant(i32),
CatCollar(DyeColor),
SheepColor(DyeColor),
ShulkerColor(DyeColor),
SulfurCubeContent(ItemStackTemplate),
Other,
}Expand description
Switch on type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CustomData(AnonNbt)
Case(s) custom_data.
MaxStackSize(i32)
Case(s) max_stack_size.
MaxDamage(i32)
Case(s) max_damage.
Damage(i32)
Case(s) damage.
Unbreakable
Case(s) unbreakable.
UseEffects(SlotComponentDataUseEffects)
Case(s) use_effects.
CustomName(AnonNbt)
Case(s) custom_name.
MinimumAttackCharge(f32)
Case(s) minimum_attack_charge.
DamageType(i32)
Case(s) damage_type.
ItemName(AnonNbt)
Case(s) item_name.
ItemModel(ByteString)
Case(s) item_model.
Lore(Vec<AnonNbt>)
Case(s) lore.
Rarity(SlotComponentDataRarity)
Case(s) rarity.
Enchantments(SlotComponentDataEnchantments)
Case(s) enchantments.
StoredEnchantments(SlotComponentDataStoredEnchantments)
Case(s) stored_enchantments.
CanPlaceOn(SlotComponentDataCanPlaceOn)
Case(s) can_place_on.
CanBreak(SlotComponentDataCanBreak)
Case(s) can_break.
AttributeModifiers(Vec<SlotComponentDataAttributeModifiers>)
Case(s) attribute_modifiers.
CustomModelData(SlotComponentDataCustomModelData)
Case(s) custom_model_data.
TooltipDisplay(SlotComponentDataTooltipDisplay)
Case(s) tooltip_display.
RepairCost(i32)
Case(s) repair_cost.
CreativeSlotLock
Case(s) creative_slot_lock.
EnchantmentGlintOverride(bool)
Case(s) enchantment_glint_override.
IntangibleProjectile(AnonNbt)
Case(s) intangible_projectile.
BlocksAttacks(SlotComponentDataBlocksAttacks)
Case(s) blocks_attacks.
Food(SlotComponentDataFood)
Case(s) food.
Consumable(SlotComponentDataConsumable)
Case(s) consumable.
UseRemainder(ItemStackTemplate)
Case(s) use_remainder.
UseCooldown(SlotComponentDataUseCooldown)
Case(s) use_cooldown.
DamageResistant(SlotComponentDataDamageResistant)
Case(s) damage_resistant.
Tool(SlotComponentDataTool)
Case(s) tool.
Weapon(SlotComponentDataWeapon)
Case(s) weapon.
AttackRange(SlotComponentDataAttackRange)
Case(s) attack_range.
Enchantable(i32)
Case(s) enchantable.
Equippable(SlotComponentDataEquippable)
Case(s) equippable.
Repairable(SlotComponentDataRepairable)
Case(s) repairable.
Glider
Case(s) glider.
TooltipStyle(ByteString)
Case(s) tooltip_style.
DeathProtection(SlotComponentDataDeathProtection)
Case(s) death_protection.
PiercingWeapon(SlotComponentDataPiercingWeapon)
Case(s) piercing_weapon.
KineticWeapon(SlotComponentDataKineticWeapon)
Case(s) kinetic_weapon.
SwingAnimation(SlotComponentDataSwingAnimation)
Case(s) swing_animation.
AdditionalTradeCost(i32)
Case(s) additional_trade_cost.
Dye(DyeColor)
Case(s) dye.
DyedColor(i32)
Case(s) dyed_color.
MapColor(i32)
Case(s) map_color.
MapId(i32)
Case(s) map_id.
MapDecorations(AnonNbt)
Case(s) map_decorations.
MapPostProcessing(i32)
Case(s) map_post_processing.
PotionDurationScale(f32)
Case(s) potion_duration_scale.
ChargedProjectiles(SlotComponentDataChargedProjectiles)
Case(s) charged_projectiles.
BundleContents(SlotComponentDataBundleContents)
Case(s) bundle_contents.
PotionContents(SlotComponentDataPotionContents)
Case(s) potion_contents.
SuspiciousStewEffects(SlotComponentDataSuspiciousStewEffects)
Case(s) suspicious_stew_effects.
WritableBookContent(SlotComponentDataWritableBookContent)
Case(s) writable_book_content.
WrittenBookContent(SlotComponentDataWrittenBookContent)
Case(s) written_book_content.
Trim(SlotComponentDataTrim)
Case(s) trim.
DebugStickState(AnonNbt)
Case(s) debug_stick_state.
EntityData(SlotComponentDataEntityData)
Case(s) entity_data.
BlockEntityData(SlotComponentDataBlockEntityData)
Case(s) block_entity_data.
BucketEntityData(AnonNbt)
Case(s) bucket_entity_data.
Instrument(Holder<InstrumentData>)
Case(s) instrument.
ProvidesTrimMaterial(Holder<ArmorTrimMaterial>)
Case(s) provides_trim_material.
OminousBottleAmplifier(i32)
Case(s) ominous_bottle_amplifier.
JukeboxPlayable(Holder<JukeboxSongData>)
Case(s) jukebox_playable.
ProvidesBannerPatterns(HolderSet)
Case(s) provides_banner_patterns.
Recipes(AnonNbt)
Case(s) recipes.
LodestoneTracker(SlotComponentDataLodestoneTracker)
Case(s) lodestone_tracker.
FireworkExplosion(ItemFireworkExplosion)
Case(s) firework_explosion.
Fireworks(SlotComponentDataFireworks)
Case(s) fireworks.
Profile(ResolvableProfile)
Case(s) profile.
NoteBlockSound(ByteString)
Case(s) note_block_sound.
BannerPatterns(SlotComponentDataBannerPatterns)
Case(s) banner_patterns.
BaseColor(DyeColor)
Case(s) base_color.
PotDecorations(SlotComponentDataPotDecorations)
Case(s) pot_decorations.
Container(SlotComponentDataContainer)
Case(s) container.
BlockState(SlotComponentDataBlockState)
Case(s) block_state.
Bees(SlotComponentDataBees)
Case(s) bees.
Lock(AnonNbt)
Case(s) lock.
ContainerLoot(AnonNbt)
Case(s) container_loot.
BreakSound(Holder<ItemSoundEvent>)
Case(s) break_sound.
VillagerVariant(i32)
Case(s) villager/variant.
WolfVariant(i32)
Case(s) wolf/variant.
WolfSoundVariant(i32)
Case(s) wolf/sound_variant.
WolfCollar(DyeColor)
Case(s) wolf/collar.
FoxVariant(i32)
Case(s) fox/variant.
SalmonSize(i32)
Case(s) salmon/size.
ParrotVariant(i32)
Case(s) parrot/variant.
TropicalFishPattern(i32)
Case(s) tropical_fish/pattern.
TropicalFishBaseColor(DyeColor)
Case(s) tropical_fish/base_color.
TropicalFishPatternColor(DyeColor)
Case(s) tropical_fish/pattern_color.
MooshroomVariant(i32)
Case(s) mooshroom/variant.
RabbitVariant(i32)
Case(s) rabbit/variant.
PigVariant(i32)
Case(s) pig/variant.
PigSoundVariant(i32)
Case(s) pig/sound_variant.
CowVariant(i32)
Case(s) cow/variant.
CowSoundVariant(i32)
Case(s) cow/sound_variant.
ChickenVariant(i32)
Case(s) chicken/variant.
ChickenSoundVariant(i32)
Case(s) chicken/sound_variant.
ZombieNautilusVariant(i32)
Case(s) zombie_nautilus/variant.
FrogVariant(i32)
Case(s) frog/variant.
HorseVariant(i32)
Case(s) horse/variant.
PaintingVariant(Holder<EntityMetadataPaintingVariant>)
Case(s) painting/variant.
LlamaVariant(i32)
Case(s) llama/variant.
AxolotlVariant(i32)
Case(s) axolotl/variant.
CatVariant(i32)
Case(s) cat/variant.
CatSoundVariant(i32)
Case(s) cat/sound_variant.
CatCollar(DyeColor)
Case(s) cat/collar.
SheepColor(DyeColor)
Case(s) sheep/color.
ShulkerColor(DyeColor)
Case(s) shulker/color.
SulfurCubeContent(ItemStackTemplate)
Case(s) sulfur_cube_content.
Other
Any other value.