File tree Expand file tree Collapse file tree 6 files changed +44
-54
lines changed
Expand file tree Collapse file tree 6 files changed +44
-54
lines changed Original file line number Diff line number Diff line change 11use super::SoundVariant
2+ use ::java::data::util::SoundEventRef
23
34#[since="1.21.5"]
45dispatch minecraft:resource[cat_variant] to struct CatVariant {
@@ -11,16 +12,14 @@ dispatch minecraft:resource[cat_variant] to struct CatVariant {
1112}
1213
1314#[since="26.1"]
14- dispatch minecraft:resource[cat_sound_variant] to SoundVariant<CatSounds>
15-
16- enum(string) CatSounds {
17- Ambient = "ambient_sound",
18- Stray = "stray_sound",
19- Hiss = "hiss_sound",
20- Hurt = "hurt_sound",
21- Death = "death_sound",
22- Eat = "eat_sound",
23- BegForFood = "beg_for_food_sound",
24- Purr = "purr_sound",
25- Purreow = "purreow_sound",
26- }
15+ dispatch minecraft:resource[cat_sound_variant] to SoundVariant<struct CatSounds {
16+ ambient_sound: SoundEventRef,
17+ stray_sound: SoundEventRef,
18+ hiss_sound: SoundEventRef,
19+ hurt_sound: SoundEventRef,
20+ death_sound: SoundEventRef,
21+ eat_sound: SoundEventRef,
22+ beg_for_food_sound: SoundEventRef,
23+ purr_sound: SoundEventRef,
24+ purreow_sound: SoundEventRef,
25+ }>
Original file line number Diff line number Diff line change 11use super::SoundVariant
2+ use ::java::data::util::SoundEventRef
23
34#[since="1.21.5"]
45dispatch minecraft:resource[chicken_variant] to struct ChickenVariant {
@@ -12,16 +13,14 @@ dispatch minecraft:resource[chicken_variant] to struct ChickenVariant {
1213}
1314
1415#[since="26.1"]
15- dispatch minecraft:resource[chicken_sound_variant] to SoundVariant<ChickenSounds>
16+ dispatch minecraft:resource[chicken_sound_variant] to SoundVariant<struct ChickenSounds {
17+ ambient_sound: SoundEventRef,
18+ hurt_sound: SoundEventRef,
19+ death_sound: SoundEventRef,
20+ step_sound: SoundEventRef,
21+ }>
1622
1723enum(string) ChickenModelType {
1824 Normal = "normal",
1925 Cold = "cold",
2026}
21-
22- enum(string) ChickenSounds {
23- Ambient = "ambient_sound",
24- Hurt = "hurt_sound",
25- Death = "death_sound",
26- Step = "step_sound",
27- }
Original file line number Diff line number Diff line change 1- use super::SoundSet
1+ use ::java::data::util::SoundEventRef
22
33#[since="1.21.5"]
44dispatch minecraft:resource[cow_variant] to struct CowVariant {
@@ -12,17 +12,15 @@ dispatch minecraft:resource[cow_variant] to struct CowVariant {
1212}
1313
1414#[since="26.1"]
15- dispatch minecraft:resource[cow_sound_variant] to SoundSet<CowSounds>
15+ dispatch minecraft:resource[cow_sound_variant] to struct CowSounds {
16+ ambient_sound: SoundEventRef,
17+ hurt_sound: SoundEventRef,
18+ death_sound: SoundEventRef,
19+ step_sound: SoundEventRef,
20+ }
1621
1722enum(string) CowModelType {
1823 Normal = "normal",
1924 Cold = "cold",
2025 Warm = "warm",
2126}
22-
23- enum(string) CowSounds {
24- Ambient = "ambient_sound",
25- Hurt = "hurt_sound",
26- Death = "death_sound",
27- Step = "step_sound",
28- }
Original file line number Diff line number Diff line change 11use ::java::data::util::MinMaxBounds
2- use ::java::data::util::SoundEventRef
32
43struct SpawnPrioritySelectors {
54 /// The spawn conditions for this variant. Selection process:
@@ -37,11 +36,7 @@ dispatch minecraft:spawn_condition[structure] to struct StructureCheck {
3736 structures: (#[id=(registry="worldgen/structure",tags="allowed")] string | [#[id="worldgen/structure"] string]),
3837}
3938
40- type SoundSet<T> = struct {
41- [T]: SoundEventRef,
42- }
43-
4439type SoundVariant<T> = struct {
45- adult_sounds: SoundSet<T> ,
46- baby_sounds: SoundSet<T> ,
40+ adult_sounds: T ,
41+ baby_sounds: T ,
4742}
Original file line number Diff line number Diff line change 11use super::SoundVariant
2+ use ::java::data::util::SoundEventRef
23
34#[since="1.21.5"]
45dispatch minecraft:resource[pig_variant] to struct PigVariant {
@@ -12,16 +13,14 @@ dispatch minecraft:resource[pig_variant] to struct PigVariant {
1213}
1314
1415#[since="26.1"]
15- dispatch minecraft:resource[pig_sound_variant] to SoundVariant<PigSounds>
16+ dispatch minecraft:resource[pig_sound_variant] to SoundVariant<struct PigSounds {
17+ ambient_sound: SoundEventRef,
18+ hurt_sound: SoundEventRef,
19+ death_sound: SoundEventRef,
20+ step_sound: SoundEventRef,
21+ }>
1622
1723enum(string) PigModelType {
1824 Normal = "normal",
1925 Cold = "cold",
2026}
21-
22- enum(string) PigSounds {
23- Ambient = "ambient_sound",
24- Hurt = "hurt_sound",
25- Death = "death_sound",
26- Step = "step_sound",
27- }
Original file line number Diff line number Diff line change 1- use super::SoundSet
21use super::SoundVariant
2+ use ::java::data::util::SoundEventRef
33
44#[since="1.20.5"]
55dispatch minecraft:resource[wolf_variant] to struct WolfVariant {
@@ -29,15 +29,15 @@ struct WolfVariantAssetInfo {
2929
3030#[since="1.21.5"]
3131dispatch minecraft:resource[wolf_sound_variant] to (
32- #[until="26.1"] SoundSet< WolfSounds> |
32+ #[until="26.1"] WolfSounds |
3333 #[since="26.1"] SoundVariant<WolfSounds> |
3434)
3535
36- enum(string) WolfSounds {
37- Ambient = " ambient_sound" ,
38- Death = " death_sound" ,
39- Growl = " growl_sound" ,
40- Hurt = " hurt_sound" ,
41- Pant = " pant_sound" ,
42- Whine = " whine_sound" ,
36+ struct WolfSounds {
37+ ambient_sound: SoundEventRef ,
38+ death_sound: SoundEventRef ,
39+ growl_sound: SoundEventRef ,
40+ hurt_sound: SoundEventRef ,
41+ pant_sound: SoundEventRef ,
42+ whine_sound: SoundEventRef ,
4343}
You can’t perform that action at this time.
0 commit comments