diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/common/mojang.py | 1 | ||||
| -rw-r--r-- | meta/model/mojang.py | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/meta/common/mojang.py b/meta/common/mojang.py index dc80f44412..f484e8d6a4 100644 --- a/meta/common/mojang.py +++ b/meta/common/mojang.py @@ -9,6 +9,7 @@ ASSETS_DIR = join(BASE_DIR, "assets") STATIC_EXPERIMENTS_FILE = join(BASE_DIR, "minecraft-experiments.json") STATIC_OLD_SNAPSHOTS_FILE = join(BASE_DIR, "minecraft-old-snapshots.json") STATIC_OVERRIDES_FILE = join(BASE_DIR, "minecraft-legacy-override.json") +STATIC_LEGACY_SERVICES_FILE = join(BASE_DIR, "minecraft-legacy-services.json") LIBRARY_PATCHES_FILE = join(BASE_DIR, "library-patches.json") MINECRAFT_COMPONENT = "net.minecraft" diff --git a/meta/model/mojang.py b/meta/model/mojang.py index 2e35634008..04e9b608ed 100644 --- a/meta/model/mojang.py +++ b/meta/model/mojang.py @@ -165,6 +165,16 @@ class LibraryPatches(MetaBase): return self.__root__[item] +class LegacyServices(MetaBase): + __root__: List[str] + + def __iter__(self) -> Iterator[str]: + return iter(self.__root__) + + def __getitem__(self, item) -> str: + return self.__root__[item] + + class MojangArguments(MetaBase): game: Optional[List[Any]] # mixture of strings and objects jvm: Optional[List[Any]] |
