@@ -213,20 +213,11 @@ impl DataComponent for Damage {
213
213
const KIND : DataComponentKind = DataComponentKind :: Damage ;
214
214
}
215
215
216
- #[ derive( Clone , PartialEq , AzBuf ) ]
217
- pub struct Unbreakable {
218
- pub show_in_tooltip : bool ,
219
- }
216
+ #[ derive( Clone , PartialEq , Default , AzBuf ) ]
217
+ pub struct Unbreakable ;
220
218
impl DataComponent for Unbreakable {
221
219
const KIND : DataComponentKind = DataComponentKind :: Unbreakable ;
222
220
}
223
- impl Default for Unbreakable {
224
- fn default ( ) -> Self {
225
- Self {
226
- show_in_tooltip : true ,
227
- }
228
- }
229
- }
230
221
231
222
#[ derive( Clone , PartialEq , AzBuf ) ]
232
223
pub struct CustomName {
@@ -268,7 +259,6 @@ impl DataComponent for Rarity {
268
259
pub struct Enchantments {
269
260
#[ var]
270
261
pub levels : HashMap < Enchantment , u32 > ,
271
- pub show_in_tooltip : bool ,
272
262
}
273
263
impl DataComponent for Enchantments {
274
264
const KIND : DataComponentKind = DataComponentKind :: Enchantments ;
@@ -301,7 +291,6 @@ pub struct BlockPredicate {
301
291
#[ derive( Clone , PartialEq , AzBuf ) ]
302
292
pub struct AdventureModePredicate {
303
293
pub predicates : Vec < BlockPredicate > ,
304
- pub show_in_tooltip : bool ,
305
294
}
306
295
307
296
#[ derive( Clone , PartialEq , AzBuf ) ]
@@ -361,7 +350,6 @@ pub struct AttributeModifiersEntry {
361
350
#[ derive( Clone , PartialEq , AzBuf ) ]
362
351
pub struct AttributeModifiers {
363
352
pub modifiers : Vec < AttributeModifiersEntry > ,
364
- pub show_in_tooltip : bool ,
365
353
}
366
354
impl DataComponent for AttributeModifiers {
367
355
const KIND : DataComponentKind = DataComponentKind :: AttributeModifiers ;
@@ -466,7 +454,6 @@ impl DataComponent for Tool {
466
454
pub struct StoredEnchantments {
467
455
#[ var]
468
456
pub enchantments : HashMap < Enchantment , i32 > ,
469
- pub show_in_tooltip : bool ,
470
457
}
471
458
impl DataComponent for StoredEnchantments {
472
459
const KIND : DataComponentKind = DataComponentKind :: StoredEnchantments ;
@@ -475,7 +462,6 @@ impl DataComponent for StoredEnchantments {
475
462
#[ derive( Clone , PartialEq , AzBuf ) ]
476
463
pub struct DyedColor {
477
464
pub rgb : i32 ,
478
- pub show_in_tooltip : bool ,
479
465
}
480
466
impl DataComponent for DyedColor {
481
467
const KIND : DataComponentKind = DataComponentKind :: DyedColor ;
@@ -584,7 +570,6 @@ impl DataComponent for WrittenBookContent {
584
570
pub struct Trim {
585
571
pub material : TrimMaterial ,
586
572
pub pattern : TrimPattern ,
587
- pub show_in_tooltip : bool ,
588
573
}
589
574
impl DataComponent for Trim {
590
575
const KIND : DataComponentKind = DataComponentKind :: Trim ;
@@ -816,7 +801,6 @@ impl DataComponent for ContainerLoot {
816
801
#[ derive( Clone , PartialEq , AzBuf ) ]
817
802
pub struct JukeboxPlayable {
818
803
pub song : registry:: JukeboxSong ,
819
- pub show_in_tooltip : bool ,
820
804
}
821
805
impl DataComponent for JukeboxPlayable {
822
806
const KIND : DataComponentKind = DataComponentKind :: JukeboxPlayable ;
0 commit comments