mcdex 0.1.0.dev0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mcdex/__init__.py +281 -0
- mcdex/advancements/__init__.py +16 -0
- mcdex/advancements/_mc_advancements.py +3558 -0
- mcdex/advancements/advancements.json +12101 -0
- mcdex/attributes/__init__.py +16 -0
- mcdex/attributes/_mc_attributes.py +83 -0
- mcdex/attributes/attributes.json +289 -0
- mcdex/banner_patterns/__init__.py +16 -0
- mcdex/banner_patterns/_mc_banner_patterns.py +86 -0
- mcdex/banner_patterns/banner_patterns.json +310 -0
- mcdex/base/__init__.py +146 -0
- mcdex/base/_advancement_id.py +22 -0
- mcdex/base/_attribute_id.py +22 -0
- mcdex/base/_banner_pattern_id.py +26 -0
- mcdex/base/_biome_id.py +22 -0
- mcdex/base/_block_entity_id.py +22 -0
- mcdex/base/_block_id.py +35 -0
- mcdex/base/_cat_sound_variant_id.py +23 -0
- mcdex/base/_cat_variant_id.py +22 -0
- mcdex/base/_catalogue_meta.py +38 -0
- mcdex/base/_chicken_sound_variant_id.py +23 -0
- mcdex/base/_chicken_variant_id.py +23 -0
- mcdex/base/_cow_sound_variant_id.py +23 -0
- mcdex/base/_cow_variant_id.py +22 -0
- mcdex/base/_damage_type_id.py +21 -0
- mcdex/base/_dimension_id.py +21 -0
- mcdex/base/_effect_id.py +21 -0
- mcdex/base/_enchantment_id.py +22 -0
- mcdex/base/_entity_id.py +35 -0
- mcdex/base/_equipment_slot.py +34 -0
- mcdex/base/_frog_variant_id.py +22 -0
- mcdex/base/_game_id.py +88 -0
- mcdex/base/_game_rule_id.py +21 -0
- mcdex/base/_item_id.py +98 -0
- mcdex/base/_mc_thing.py +289 -0
- mcdex/base/_mc_version.py +140 -0
- mcdex/base/_music_id.py +25 -0
- mcdex/base/_not_in_version.py +68 -0
- mcdex/base/_painting_variant_id.py +23 -0
- mcdex/base/_particle_id.py +21 -0
- mcdex/base/_pig_sound_variant_id.py +23 -0
- mcdex/base/_pig_variant_id.py +22 -0
- mcdex/base/_potion_id.py +25 -0
- mcdex/base/_potion_modifier.py +30 -0
- mcdex/base/_sound_id.py +21 -0
- mcdex/base/_statistic_id.py +22 -0
- mcdex/base/_structure_id.py +21 -0
- mcdex/base/_trim_material_id.py +26 -0
- mcdex/base/_trim_pattern_id.py +25 -0
- mcdex/base/_version.py +188 -0
- mcdex/base/_villager_profession_id.py +24 -0
- mcdex/base/_villager_type_id.py +25 -0
- mcdex/base/_wolf_sound_variant_id.py +23 -0
- mcdex/base/_wolf_variant_id.py +22 -0
- mcdex/base/_zombie_nautilus_variant_id.py +23 -0
- mcdex/biomes/__init__.py +16 -0
- mcdex/biomes/_mc_biomes.py +137 -0
- mcdex/biomes/biomes.json +652 -0
- mcdex/block_entities/__init__.py +16 -0
- mcdex/block_entities/_mc_block_entities.py +95 -0
- mcdex/block_entities/block_entities.json +331 -0
- mcdex/blocks/__init__.py +16 -0
- mcdex/blocks/_mc_blocks.py +1338 -0
- mcdex/blocks/blocks.json +7770 -0
- mcdex/cat_sound_variants/__init__.py +16 -0
- mcdex/cat_sound_variants/_mc_cat_sound_variants.py +47 -0
- mcdex/cat_sound_variants/cat_sound_variants.json +25 -0
- mcdex/cat_variants/__init__.py +16 -0
- mcdex/cat_variants/_mc_cat_variants.py +54 -0
- mcdex/cat_variants/cat_variants.json +91 -0
- mcdex/chicken_sound_variants/__init__.py +17 -0
- mcdex/chicken_sound_variants/_mc_chicken_sound_variants.py +48 -0
- mcdex/chicken_sound_variants/chicken_sound_variants.json +24 -0
- mcdex/chicken_variants/__init__.py +16 -0
- mcdex/chicken_variants/_mc_chicken_variants.py +47 -0
- mcdex/chicken_variants/chicken_variants.json +30 -0
- mcdex/cow_sound_variants/__init__.py +16 -0
- mcdex/cow_sound_variants/_mc_cow_sound_variants.py +47 -0
- mcdex/cow_sound_variants/cow_sound_variants.json +24 -0
- mcdex/cow_variants/__init__.py +16 -0
- mcdex/cow_variants/_mc_cow_variants.py +47 -0
- mcdex/cow_variants/cow_variants.json +30 -0
- mcdex/damage_types/__init__.py +16 -0
- mcdex/damage_types/_mc_damage_types.py +94 -0
- mcdex/damage_types/damage_types.json +317 -0
- mcdex/dimensions/__init__.py +16 -0
- mcdex/dimensions/_mc_dimensions.py +46 -0
- mcdex/dimensions/dimensions.json +29 -0
- mcdex/effects/__init__.py +16 -0
- mcdex/effects/_mc_effects.py +83 -0
- mcdex/effects/effects.json +251 -0
- mcdex/enchantments/__init__.py +16 -0
- mcdex/enchantments/_mc_enchantments.py +86 -0
- mcdex/enchantments/enchantments.json +270 -0
- mcdex/entities/__init__.py +16 -0
- mcdex/entities/_mc_entities.py +206 -0
- mcdex/entities/entities.json +1042 -0
- mcdex/frog_variants/__init__.py +16 -0
- mcdex/frog_variants/_mc_frog_variants.py +47 -0
- mcdex/frog_variants/frog_variants.json +29 -0
- mcdex/game_rules/__init__.py +16 -0
- mcdex/game_rules/_mc_game_rules.py +110 -0
- mcdex/game_rules/game_rules.json +436 -0
- mcdex/items/__init__.py +16 -0
- mcdex/items/_mc_items.py +1842 -0
- mcdex/items/items.json +20060 -0
- mcdex/music/__init__.py +16 -0
- mcdex/music/_music.py +65 -0
- mcdex/music/music.json +143 -0
- mcdex/painting_variants/__init__.py +16 -0
- mcdex/painting_variants/_mc_painting_variants.py +96 -0
- mcdex/painting_variants/painting_variants.json +369 -0
- mcdex/particles/__init__.py +16 -0
- mcdex/particles/_mc_particles.py +184 -0
- mcdex/particles/particles.json +917 -0
- mcdex/pig_sound_variants/__init__.py +16 -0
- mcdex/pig_sound_variants/_mc_pig_sound_variants.py +48 -0
- mcdex/pig_sound_variants/pig_sound_variants.json +30 -0
- mcdex/pig_variants/__init__.py +16 -0
- mcdex/pig_variants/_mc_pig_variants.py +46 -0
- mcdex/pig_variants/pig_variants.json +30 -0
- mcdex/potions/__init__.py +20 -0
- mcdex/potions/_mc_potions.py +101 -0
- mcdex/potions/_modified_potion.py +129 -0
- mcdex/potions/potions.json +297 -0
- mcdex/py.typed +0 -0
- mcdex/sounds/__init__.py +16 -0
- mcdex/sounds/_mc_sounds.py +2395 -0
- mcdex/sounds/sounds.json +13077 -0
- mcdex/statistics/__init__.py +16 -0
- mcdex/statistics/_mc_statistics.py +123 -0
- mcdex/statistics/statistics.json +521 -0
- mcdex/structures/__init__.py +16 -0
- mcdex/structures/_mc_structures.py +99 -0
- mcdex/structures/structures.json +367 -0
- mcdex/trim_materials/__init__.py +16 -0
- mcdex/trim_materials/_mc_trim_materials.py +54 -0
- mcdex/trim_materials/trim_materials.json +77 -0
- mcdex/trim_patterns/__init__.py +16 -0
- mcdex/trim_patterns/_mc_trim_patterns.py +61 -0
- mcdex/trim_patterns/trim_patterns.json +119 -0
- mcdex/villager_professions/__init__.py +17 -0
- mcdex/villager_professions/_mc_villager_professions.py +61 -0
- mcdex/villager_professions/villager_professions.json +125 -0
- mcdex/villager_types/__init__.py +16 -0
- mcdex/villager_types/_mc_villager_types.py +52 -0
- mcdex/villager_types/villager_types.json +54 -0
- mcdex/wolf_sound_variants/__init__.py +17 -0
- mcdex/wolf_sound_variants/_mc_wolf_sound_variants.py +53 -0
- mcdex/wolf_sound_variants/wolf_sound_variants.json +54 -0
- mcdex/wolf_variants/__init__.py +16 -0
- mcdex/wolf_variants/_mc_wolf_variants.py +53 -0
- mcdex/wolf_variants/wolf_variants.json +66 -0
- mcdex/zombie_nautilus_variants/__init__.py +17 -0
- mcdex/zombie_nautilus_variants/_mc_zombie_nautilus_variants.py +48 -0
- mcdex/zombie_nautilus_variants/zombie_nautilus_variants.json +23 -0
- mcdex-0.1.0.dev0.dist-info/METADATA +1285 -0
- mcdex-0.1.0.dev0.dist-info/RECORD +161 -0
- mcdex-0.1.0.dev0.dist-info/WHEEL +5 -0
- mcdex-0.1.0.dev0.dist-info/licenses/LICENSE +201 -0
- mcdex-0.1.0.dev0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.cat_sound_variants' package provides the cat sound variants of the
|
|
3
|
+
game: the 'MCCatSoundVariants' catalogue, an enumeration of every cat sound
|
|
4
|
+
variant of the data file 'cat_sound_variants.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCCatSoundVariants
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_cat_sound_variants import MCCatSoundVariants
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCCatSoundVariants',
|
|
16
|
+
)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCCatSoundVariants is the catalogue of the game's cat sound variants: an
|
|
3
|
+
enumeration with one member for every cat sound variant of the data file that
|
|
4
|
+
ships with mcdex, each the same cat sound variant in every version, with the id
|
|
5
|
+
each version knows it by: what /summon takes for a cat of that sound variant.
|
|
6
|
+
"""
|
|
7
|
+
# Apache-2.0 license
|
|
8
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from worktoy.keenum import Kee
|
|
12
|
+
|
|
13
|
+
from ..base import CatSoundVariantId, MCThing
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MCCatSoundVariants(MCThing):
|
|
17
|
+
"""
|
|
18
|
+
The catalogue of the game's cat sound variants, each a member, found by its
|
|
19
|
+
name in capitals, in any case, or by its unique name:
|
|
20
|
+
|
|
21
|
+
royal = MCCatSoundVariants.ROYAL
|
|
22
|
+
royal is MCCatSoundVariants['royal'] # True
|
|
23
|
+
royal['26.1']
|
|
24
|
+
# CatSoundVariantId('royal',
|
|
25
|
+
# 'minecraft:cat{sound_variant:"minecraft:royal"}')
|
|
26
|
+
len(MCCatSoundVariants)
|
|
27
|
+
|
|
28
|
+
Implementation
|
|
29
|
+
--------------
|
|
30
|
+
|
|
31
|
+
All of it is 'MCThing's, reading 'cat_sound_variants.json' beside this
|
|
32
|
+
module. mcdex's tools write the members, one for every name of that file.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
36
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
37
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
38
|
+
|
|
39
|
+
# Class Variables
|
|
40
|
+
__data_file__ = 'cat_sound_variants.json'
|
|
41
|
+
__data_key__ = 'cat_sound_variants'
|
|
42
|
+
__id_class__ = CatSoundVariantId
|
|
43
|
+
__kind__ = 'cat sound variant'
|
|
44
|
+
|
|
45
|
+
# Members, one for every name of 'cat_sound_variants.json'
|
|
46
|
+
CLASSIC = Kee[str]('classic')
|
|
47
|
+
ROYAL = Kee[str]('royal')
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such cat sound variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"cat_sound_variants": {
|
|
10
|
+
"classic": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "Ozelot{CatType:1}",
|
|
13
|
+
"1.11": "minecraft:ocelot{CatType:1}",
|
|
14
|
+
"1.14": "minecraft:cat",
|
|
15
|
+
"26.1": "minecraft:cat{sound_variant:\"minecraft:classic\"}"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"royal": {
|
|
19
|
+
"ids": {
|
|
20
|
+
"1.7.2": "",
|
|
21
|
+
"26.1": "minecraft:cat{sound_variant:\"minecraft:royal\"}"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.cat_variants' package provides the cat variants of the game: the
|
|
3
|
+
'MCCatVariants' catalogue, an enumeration of every cat variant of the data file
|
|
4
|
+
'cat_variants.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCCatVariants
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_cat_variants import MCCatVariants
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCCatVariants',
|
|
16
|
+
)
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCCatVariants is the catalogue of the game's cat variants: an enumeration with
|
|
3
|
+
one member for every cat variant of the data file that ships with mcdex, each
|
|
4
|
+
the same cat variant in every version, with the id each version knows it by:
|
|
5
|
+
what /summon takes for a cat of that variant.
|
|
6
|
+
"""
|
|
7
|
+
# Apache-2.0 license
|
|
8
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from worktoy.keenum import Kee
|
|
12
|
+
|
|
13
|
+
from ..base import CatVariantId, MCThing
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MCCatVariants(MCThing):
|
|
17
|
+
"""
|
|
18
|
+
The catalogue of the game's cat variants, each a member, found by its name in
|
|
19
|
+
capitals, in any case, or by its unique name:
|
|
20
|
+
|
|
21
|
+
black = MCCatVariants.BLACK
|
|
22
|
+
black is MCCatVariants['black'] # True
|
|
23
|
+
black['1.12.2'] # CatVariantId('black', 'minecraft:ocelot{CatType:1}')
|
|
24
|
+
len(MCCatVariants)
|
|
25
|
+
|
|
26
|
+
Implementation
|
|
27
|
+
--------------
|
|
28
|
+
|
|
29
|
+
All of it is 'MCThing's, reading 'cat_variants.json' beside this module.
|
|
30
|
+
mcdex's tools write the members, one for every name of that file.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
34
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
35
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
36
|
+
|
|
37
|
+
# Class Variables
|
|
38
|
+
__data_file__ = 'cat_variants.json'
|
|
39
|
+
__data_key__ = 'cat_variants'
|
|
40
|
+
__id_class__ = CatVariantId
|
|
41
|
+
__kind__ = 'cat variant'
|
|
42
|
+
|
|
43
|
+
# Members, one for every name of 'cat_variants.json'
|
|
44
|
+
ALL_BLACK = Kee[str]('all_black')
|
|
45
|
+
BLACK = Kee[str]('black')
|
|
46
|
+
BRITISH_SHORTHAIR = Kee[str]('british_shorthair')
|
|
47
|
+
CALICO = Kee[str]('calico')
|
|
48
|
+
JELLIE = Kee[str]('jellie')
|
|
49
|
+
PERSIAN = Kee[str]('persian')
|
|
50
|
+
RAGDOLL = Kee[str]('ragdoll')
|
|
51
|
+
RED = Kee[str]('red')
|
|
52
|
+
SIAMESE = Kee[str]('siamese')
|
|
53
|
+
TABBY = Kee[str]('tabby')
|
|
54
|
+
WHITE = Kee[str]('white')
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such cat variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"cat_variants": {
|
|
10
|
+
"all_black": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "",
|
|
13
|
+
"1.14": "minecraft:cat{CatType:10}",
|
|
14
|
+
"1.19": "minecraft:cat{variant:\"minecraft:all_black\"}"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"black": {
|
|
18
|
+
"ids": {
|
|
19
|
+
"1.7.2": "Ozelot{CatType:1}",
|
|
20
|
+
"1.11": "minecraft:ocelot{CatType:1}",
|
|
21
|
+
"1.14": "minecraft:cat{CatType:1}",
|
|
22
|
+
"1.19": "minecraft:cat{variant:\"minecraft:black\"}"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"british_shorthair": {
|
|
26
|
+
"ids": {
|
|
27
|
+
"1.7.2": "",
|
|
28
|
+
"1.14": "minecraft:cat{CatType:4}",
|
|
29
|
+
"1.19": "minecraft:cat{variant:\"minecraft:british_shorthair\"}"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"calico": {
|
|
33
|
+
"ids": {
|
|
34
|
+
"1.7.2": "",
|
|
35
|
+
"1.14": "minecraft:cat{CatType:5}",
|
|
36
|
+
"1.19": "minecraft:cat{variant:\"minecraft:calico\"}"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"jellie": {
|
|
40
|
+
"ids": {
|
|
41
|
+
"1.7.2": "",
|
|
42
|
+
"1.14": "minecraft:cat{CatType:9}",
|
|
43
|
+
"1.19": "minecraft:cat{variant:\"minecraft:jellie\"}"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"persian": {
|
|
47
|
+
"ids": {
|
|
48
|
+
"1.7.2": "",
|
|
49
|
+
"1.14": "minecraft:cat{CatType:6}",
|
|
50
|
+
"1.19": "minecraft:cat{variant:\"minecraft:persian\"}"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"ragdoll": {
|
|
54
|
+
"ids": {
|
|
55
|
+
"1.7.2": "",
|
|
56
|
+
"1.14": "minecraft:cat{CatType:7}",
|
|
57
|
+
"1.19": "minecraft:cat{variant:\"minecraft:ragdoll\"}"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"red": {
|
|
61
|
+
"ids": {
|
|
62
|
+
"1.7.2": "Ozelot{CatType:2}",
|
|
63
|
+
"1.11": "minecraft:ocelot{CatType:2}",
|
|
64
|
+
"1.14": "minecraft:cat{CatType:2}",
|
|
65
|
+
"1.19": "minecraft:cat{variant:\"minecraft:red\"}"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"siamese": {
|
|
69
|
+
"ids": {
|
|
70
|
+
"1.7.2": "Ozelot{CatType:3}",
|
|
71
|
+
"1.11": "minecraft:ocelot{CatType:3}",
|
|
72
|
+
"1.14": "minecraft:cat{CatType:3}",
|
|
73
|
+
"1.19": "minecraft:cat{variant:\"minecraft:siamese\"}"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"tabby": {
|
|
77
|
+
"ids": {
|
|
78
|
+
"1.7.2": "",
|
|
79
|
+
"1.14": "minecraft:cat{CatType:0}",
|
|
80
|
+
"1.19": "minecraft:cat{variant:\"minecraft:tabby\"}"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"white": {
|
|
84
|
+
"ids": {
|
|
85
|
+
"1.7.2": "",
|
|
86
|
+
"1.14": "minecraft:cat{CatType:8}",
|
|
87
|
+
"1.19": "minecraft:cat{variant:\"minecraft:white\"}"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.chicken_sound_variants' package provides the chicken sound variants
|
|
3
|
+
of the game: the 'MCChickenSoundVariants' catalogue, an enumeration of every
|
|
4
|
+
chicken sound variant of the data file 'chicken_sound_variants.json' that ships
|
|
5
|
+
with the package.
|
|
6
|
+
|
|
7
|
+
- MCChickenSoundVariants
|
|
8
|
+
"""
|
|
9
|
+
# Apache-2.0 license
|
|
10
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
from ._mc_chicken_sound_variants import MCChickenSoundVariants
|
|
14
|
+
|
|
15
|
+
__all__ = (
|
|
16
|
+
'MCChickenSoundVariants',
|
|
17
|
+
)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCChickenSoundVariants is the catalogue of the game's chicken sound variants:
|
|
3
|
+
an enumeration with one member for every chicken sound variant of the data file
|
|
4
|
+
that ships with mcdex, each the same chicken sound variant in every version,
|
|
5
|
+
with the id each version knows it by: what /summon takes for a chicken of that
|
|
6
|
+
sound variant.
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from worktoy.keenum import Kee
|
|
13
|
+
|
|
14
|
+
from ..base import ChickenSoundVariantId, MCThing
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class MCChickenSoundVariants(MCThing):
|
|
18
|
+
"""
|
|
19
|
+
The catalogue of the game's chicken sound variants, each a member, found by
|
|
20
|
+
its name in capitals, in any case, or by its unique name:
|
|
21
|
+
|
|
22
|
+
picky = MCChickenSoundVariants.PICKY
|
|
23
|
+
picky is MCChickenSoundVariants['picky'] # True
|
|
24
|
+
picky['26.1']
|
|
25
|
+
# ChickenSoundVariantId('picky',
|
|
26
|
+
# 'minecraft:chicken{sound_variant:"minecraft:picky"}')
|
|
27
|
+
len(MCChickenSoundVariants)
|
|
28
|
+
|
|
29
|
+
Implementation
|
|
30
|
+
--------------
|
|
31
|
+
|
|
32
|
+
All of it is 'MCThing's, reading 'chicken_sound_variants.json' beside this
|
|
33
|
+
module. mcdex's tools write the members, one for every name of that file.
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
37
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
38
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
39
|
+
|
|
40
|
+
# Class Variables
|
|
41
|
+
__data_file__ = 'chicken_sound_variants.json'
|
|
42
|
+
__data_key__ = 'chicken_sound_variants'
|
|
43
|
+
__id_class__ = ChickenSoundVariantId
|
|
44
|
+
__kind__ = 'chicken sound variant'
|
|
45
|
+
|
|
46
|
+
# Members, one for every name of 'chicken_sound_variants.json'
|
|
47
|
+
CLASSIC = Kee[str]('classic')
|
|
48
|
+
PICKY = Kee[str]('picky')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such chicken sound variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"chicken_sound_variants": {
|
|
10
|
+
"classic": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "Chicken",
|
|
13
|
+
"1.11": "minecraft:chicken",
|
|
14
|
+
"26.1": "minecraft:chicken{sound_variant:\"minecraft:classic\"}"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"picky": {
|
|
18
|
+
"ids": {
|
|
19
|
+
"1.7.2": "",
|
|
20
|
+
"26.1": "minecraft:chicken{sound_variant:\"minecraft:picky\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.chicken_variants' package provides the chicken variants of the game:
|
|
3
|
+
the 'MCChickenVariants' catalogue, an enumeration of every chicken variant of
|
|
4
|
+
the data file 'chicken_variants.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCChickenVariants
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_chicken_variants import MCChickenVariants
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCChickenVariants',
|
|
16
|
+
)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCChickenVariants is the catalogue of the game's chicken variants: an
|
|
3
|
+
enumeration with one member for every chicken variant of the data file that
|
|
4
|
+
ships with mcdex, each the same chicken variant in every version, with the id
|
|
5
|
+
each version knows it by: what /summon takes for a chicken of that variant.
|
|
6
|
+
"""
|
|
7
|
+
# Apache-2.0 license
|
|
8
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from worktoy.keenum import Kee
|
|
12
|
+
|
|
13
|
+
from ..base import ChickenVariantId, MCThing
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MCChickenVariants(MCThing):
|
|
17
|
+
"""
|
|
18
|
+
The catalogue of the game's chicken variants, each a member, found by its
|
|
19
|
+
name in capitals, in any case, or by its unique name:
|
|
20
|
+
|
|
21
|
+
cold = MCChickenVariants.COLD
|
|
22
|
+
cold is MCChickenVariants['cold'] # True
|
|
23
|
+
cold['1.21.5']
|
|
24
|
+
# ChickenVariantId('cold', 'minecraft:chicken{variant:"minecraft:cold"}')
|
|
25
|
+
len(MCChickenVariants)
|
|
26
|
+
|
|
27
|
+
Implementation
|
|
28
|
+
--------------
|
|
29
|
+
|
|
30
|
+
All of it is 'MCThing's, reading 'chicken_variants.json' beside this module.
|
|
31
|
+
mcdex's tools write the members, one for every name of that file.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
35
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
36
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
37
|
+
|
|
38
|
+
# Class Variables
|
|
39
|
+
__data_file__ = 'chicken_variants.json'
|
|
40
|
+
__data_key__ = 'chicken_variants'
|
|
41
|
+
__id_class__ = ChickenVariantId
|
|
42
|
+
__kind__ = 'chicken variant'
|
|
43
|
+
|
|
44
|
+
# Members, one for every name of 'chicken_variants.json'
|
|
45
|
+
COLD = Kee[str]('cold')
|
|
46
|
+
TEMPERATE = Kee[str]('temperate')
|
|
47
|
+
WARM = Kee[str]('warm')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such chicken variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"chicken_variants": {
|
|
10
|
+
"cold": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "",
|
|
13
|
+
"1.21.5": "minecraft:chicken{variant:\"minecraft:cold\"}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"temperate": {
|
|
17
|
+
"ids": {
|
|
18
|
+
"1.7.2": "Chicken",
|
|
19
|
+
"1.11": "minecraft:chicken",
|
|
20
|
+
"1.21.5": "minecraft:chicken{variant:\"minecraft:temperate\"}"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"warm": {
|
|
24
|
+
"ids": {
|
|
25
|
+
"1.7.2": "",
|
|
26
|
+
"1.21.5": "minecraft:chicken{variant:\"minecraft:warm\"}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.cow_sound_variants' package provides the cow sound variants of the
|
|
3
|
+
game: the 'MCCowSoundVariants' catalogue, an enumeration of every cow sound
|
|
4
|
+
variant of the data file 'cow_sound_variants.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCCowSoundVariants
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_cow_sound_variants import MCCowSoundVariants
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCCowSoundVariants',
|
|
16
|
+
)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCCowSoundVariants is the catalogue of the game's cow sound variants: an
|
|
3
|
+
enumeration with one member for every cow sound variant of the data file that
|
|
4
|
+
ships with mcdex, each the same cow sound variant in every version, with the id
|
|
5
|
+
each version knows it by: what /summon takes for a cow of that sound variant.
|
|
6
|
+
"""
|
|
7
|
+
# Apache-2.0 license
|
|
8
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from worktoy.keenum import Kee
|
|
12
|
+
|
|
13
|
+
from ..base import CowSoundVariantId, MCThing
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MCCowSoundVariants(MCThing):
|
|
17
|
+
"""
|
|
18
|
+
The catalogue of the game's cow sound variants, each a member, found by its
|
|
19
|
+
name in capitals, in any case, or by its unique name:
|
|
20
|
+
|
|
21
|
+
moody = MCCowSoundVariants.MOODY
|
|
22
|
+
moody is MCCowSoundVariants['moody'] # True
|
|
23
|
+
moody['26.1']
|
|
24
|
+
# CowSoundVariantId('moody',
|
|
25
|
+
# 'minecraft:cow{sound_variant:"minecraft:moody"}')
|
|
26
|
+
len(MCCowSoundVariants)
|
|
27
|
+
|
|
28
|
+
Implementation
|
|
29
|
+
--------------
|
|
30
|
+
|
|
31
|
+
All of it is 'MCThing's, reading 'cow_sound_variants.json' beside this
|
|
32
|
+
module. mcdex's tools write the members, one for every name of that file.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
36
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
37
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
38
|
+
|
|
39
|
+
# Class Variables
|
|
40
|
+
__data_file__ = 'cow_sound_variants.json'
|
|
41
|
+
__data_key__ = 'cow_sound_variants'
|
|
42
|
+
__id_class__ = CowSoundVariantId
|
|
43
|
+
__kind__ = 'cow sound variant'
|
|
44
|
+
|
|
45
|
+
# Members, one for every name of 'cow_sound_variants.json'
|
|
46
|
+
CLASSIC = Kee[str]('classic')
|
|
47
|
+
MOODY = Kee[str]('moody')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such cow sound variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"cow_sound_variants": {
|
|
10
|
+
"classic": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "Cow",
|
|
13
|
+
"1.11": "minecraft:cow",
|
|
14
|
+
"26.1": "minecraft:cow{sound_variant:\"minecraft:classic\"}"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"moody": {
|
|
18
|
+
"ids": {
|
|
19
|
+
"1.7.2": "",
|
|
20
|
+
"26.1": "minecraft:cow{sound_variant:\"minecraft:moody\"}"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.cow_variants' package provides the cow variants of the game: the
|
|
3
|
+
'MCCowVariants' catalogue, an enumeration of every cow variant of the data file
|
|
4
|
+
'cow_variants.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCCowVariants
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_cow_variants import MCCowVariants
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCCowVariants',
|
|
16
|
+
)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"""
|
|
2
|
+
MCCowVariants is the catalogue of the game's cow variants: an enumeration with
|
|
3
|
+
one member for every cow variant of the data file that ships with mcdex, each
|
|
4
|
+
the same cow variant in every version, with the id each version knows it by:
|
|
5
|
+
what /summon takes for a cow of that variant.
|
|
6
|
+
"""
|
|
7
|
+
# Apache-2.0 license
|
|
8
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
9
|
+
from __future__ import annotations
|
|
10
|
+
|
|
11
|
+
from worktoy.keenum import Kee
|
|
12
|
+
|
|
13
|
+
from ..base import CowVariantId, MCThing
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class MCCowVariants(MCThing):
|
|
17
|
+
"""
|
|
18
|
+
The catalogue of the game's cow variants, each a member, found by its name in
|
|
19
|
+
capitals, in any case, or by its unique name:
|
|
20
|
+
|
|
21
|
+
warm = MCCowVariants.WARM
|
|
22
|
+
warm is MCCowVariants['warm'] # True
|
|
23
|
+
warm['1.21.5']
|
|
24
|
+
# CowVariantId('warm', 'minecraft:cow{variant:"minecraft:warm"}')
|
|
25
|
+
len(MCCowVariants)
|
|
26
|
+
|
|
27
|
+
Implementation
|
|
28
|
+
--------------
|
|
29
|
+
|
|
30
|
+
All of it is 'MCThing's, reading 'cow_variants.json' beside this module.
|
|
31
|
+
mcdex's tools write the members, one for every name of that file.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
35
|
+
# NAMESPACE # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
36
|
+
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
|
|
37
|
+
|
|
38
|
+
# Class Variables
|
|
39
|
+
__data_file__ = 'cow_variants.json'
|
|
40
|
+
__data_key__ = 'cow_variants'
|
|
41
|
+
__id_class__ = CowVariantId
|
|
42
|
+
__kind__ = 'cow variant'
|
|
43
|
+
|
|
44
|
+
# Members, one for every name of 'cow_variants.json'
|
|
45
|
+
COLD = Kee[str]('cold')
|
|
46
|
+
TEMPERATE = Kee[str]('temperate')
|
|
47
|
+
WARM = Kee[str]('warm')
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"covers": [
|
|
3
|
+
"1.7.2",
|
|
4
|
+
"26.3"
|
|
5
|
+
],
|
|
6
|
+
"legend": {
|
|
7
|
+
"": "vanilla has no such cow variant in this version"
|
|
8
|
+
},
|
|
9
|
+
"cow_variants": {
|
|
10
|
+
"cold": {
|
|
11
|
+
"ids": {
|
|
12
|
+
"1.7.2": "",
|
|
13
|
+
"1.21.5": "minecraft:cow{variant:\"minecraft:cold\"}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"temperate": {
|
|
17
|
+
"ids": {
|
|
18
|
+
"1.7.2": "Cow",
|
|
19
|
+
"1.11": "minecraft:cow",
|
|
20
|
+
"1.21.5": "minecraft:cow{variant:\"minecraft:temperate\"}"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"warm": {
|
|
24
|
+
"ids": {
|
|
25
|
+
"1.7.2": "",
|
|
26
|
+
"1.21.5": "minecraft:cow{variant:\"minecraft:warm\"}"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""
|
|
2
|
+
The 'mcdex.damage_types' package provides the damage types of the game: the
|
|
3
|
+
'MCDamageTypes' catalogue, an enumeration of every damage type of the data file
|
|
4
|
+
'damage_types.json' that ships with the package.
|
|
5
|
+
|
|
6
|
+
- MCDamageTypes
|
|
7
|
+
"""
|
|
8
|
+
# Apache-2.0 license
|
|
9
|
+
# Copyright (c) 2026 Asger Jon Vistisen
|
|
10
|
+
from __future__ import annotations
|
|
11
|
+
|
|
12
|
+
from ._mc_damage_types import MCDamageTypes
|
|
13
|
+
|
|
14
|
+
__all__ = (
|
|
15
|
+
'MCDamageTypes',
|
|
16
|
+
)
|