diff options
| author | mat <git@matdoes.dev> | 2025-03-26 00:00:25 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-03-26 00:00:25 +0000 |
| commit | 37cde3ad3245675c54e70a4ded362f2a60f0d8a4 (patch) | |
| tree | 9b3ad54940d789eab44f31a66cfb4ac3801ed4d4 /azalea-inventory/src/components.rs | |
| parent | ef357fdf3667f3ded03203fc0f7cdec48a01ad8f (diff) | |
| download | azalea-drasl-37cde3ad3245675c54e70a4ded362f2a60f0d8a4.tar.xz | |
fix components, show_in_tooltip was removed
Diffstat (limited to 'azalea-inventory/src/components.rs')
| -rw-r--r-- | azalea-inventory/src/components.rs | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/azalea-inventory/src/components.rs b/azalea-inventory/src/components.rs index 13aa76f5..baeb3457 100644 --- a/azalea-inventory/src/components.rs +++ b/azalea-inventory/src/components.rs @@ -213,20 +213,11 @@ impl DataComponent for Damage { const KIND: DataComponentKind = DataComponentKind::Damage; } -#[derive(Clone, PartialEq, AzBuf)] -pub struct Unbreakable { - pub show_in_tooltip: bool, -} +#[derive(Clone, PartialEq, Default, AzBuf)] +pub struct Unbreakable; impl DataComponent for Unbreakable { const KIND: DataComponentKind = DataComponentKind::Unbreakable; } -impl Default for Unbreakable { - fn default() -> Self { - Self { - show_in_tooltip: true, - } - } -} #[derive(Clone, PartialEq, AzBuf)] pub struct CustomName { @@ -268,7 +259,6 @@ impl DataComponent for Rarity { pub struct Enchantments { #[var] pub levels: HashMap<Enchantment, u32>, - pub show_in_tooltip: bool, } impl DataComponent for Enchantments { const KIND: DataComponentKind = DataComponentKind::Enchantments; @@ -301,7 +291,6 @@ pub struct BlockPredicate { #[derive(Clone, PartialEq, AzBuf)] pub struct AdventureModePredicate { pub predicates: Vec<BlockPredicate>, - pub show_in_tooltip: bool, } #[derive(Clone, PartialEq, AzBuf)] @@ -361,7 +350,6 @@ pub struct AttributeModifiersEntry { #[derive(Clone, PartialEq, AzBuf)] pub struct AttributeModifiers { pub modifiers: Vec<AttributeModifiersEntry>, - pub show_in_tooltip: bool, } impl DataComponent for AttributeModifiers { const KIND: DataComponentKind = DataComponentKind::AttributeModifiers; @@ -466,7 +454,6 @@ impl DataComponent for Tool { pub struct StoredEnchantments { #[var] pub enchantments: HashMap<Enchantment, i32>, - pub show_in_tooltip: bool, } impl DataComponent for StoredEnchantments { const KIND: DataComponentKind = DataComponentKind::StoredEnchantments; @@ -475,7 +462,6 @@ impl DataComponent for StoredEnchantments { #[derive(Clone, PartialEq, AzBuf)] pub struct DyedColor { pub rgb: i32, - pub show_in_tooltip: bool, } impl DataComponent for DyedColor { const KIND: DataComponentKind = DataComponentKind::DyedColor; @@ -584,7 +570,6 @@ impl DataComponent for WrittenBookContent { pub struct Trim { pub material: TrimMaterial, pub pattern: TrimPattern, - pub show_in_tooltip: bool, } impl DataComponent for Trim { const KIND: DataComponentKind = DataComponentKind::Trim; @@ -816,7 +801,6 @@ impl DataComponent for ContainerLoot { #[derive(Clone, PartialEq, AzBuf)] pub struct JukeboxPlayable { pub song: registry::JukeboxSong, - pub show_in_tooltip: bool, } impl DataComponent for JukeboxPlayable { const KIND: DataComponentKind = DataComponentKind::JukeboxPlayable; |
