forked from MultiMC/meta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabricutil.py
28 lines (23 loc) · 1023 Bytes
/
fabricutil.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from metautil import *
import jsonobject
class FabricInstallerArguments(JsonObject):
client = ListProperty(StringProperty)
common = ListProperty(StringProperty)
server = ListProperty(StringProperty)
class FabricInstallerLaunchwrapper(JsonObject):
tweakers = ObjectProperty(FabricInstallerArguments, required=True)
class FabricInstallerLibraries(JsonObject):
client = ListProperty(MultiMCLibrary)
common = ListProperty(MultiMCLibrary)
server = ListProperty(MultiMCLibrary)
class FabricInstallerDataV1(JsonObject):
version = IntegerProperty(required=True)
libraries = ObjectProperty(FabricInstallerLibraries, required=True)
mainClass = jsonobject.DefaultProperty()
arguments = ObjectProperty(FabricInstallerArguments, required=False)
launchwrapper = ObjectProperty(FabricInstallerLaunchwrapper, required=False)
class FabricJarInfo(JsonObject):
releaseTime = ISOTimestampProperty()
size = IntegerProperty()
sha256 = StringProperty()
sha1 = StringProperty()