-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.go
138 lines (136 loc) · 2.67 KB
/
consts.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
package launcher
const (
// Path where asset indexes reside.
//
// It is followed by /{indexName}
//
// Where:
//
// - indexName is name of the index file consisting of its ID and .json extension.
assetIndexesPath = "assets/indexes"
// Path where logging configurations reside.
//
// It is followed by /{logConfigName}
//
// Where:
//
// - logConfigName is name of the logging configuration file.
logConfigsPath = "assets/log_configs"
assetsPath = "assets"
// Path where asset objects reside.
//
// It is followed by /{assetInitials}/{hash}
//
// Where:
//
// - assetInitials are two first characters of the hash
//
// - hash asset hash sum.
assetsObjectsPath = assetsPath + "/objects"
// Path where assets are virtualised.
//
// It is followed by /{indexID}/{assetPath}
//
// Where:
//
// - indexID is identifier of the asset index file
//
// - assetPath is path of the asset.
assetsVirtualPath = assetsPath + "/virtual"
// Path where JREs should be installed.
//
// It is followed by /{classifier}/{selector}
//
// Where:
//
// - classifier is a classifier of the JRE (e.g. java-runtime-alpha)
//
// - selector is an appropriate system/arch selector (e.g. windows-x64)
//
// Resulting path is a folder with multiple files:
//
// - .version - a text file containing that JRE version.
//
// - {classifier}.sha1 - a special text file containing hash sums. // TODO: write a parser for that file
//
// - {classifier} - a folder containing the files of that JRE.
runtimesPath = "runtime"
)
var LauncherIcons = []string{
"Bedrock",
"Bookshelf",
"Brick",
"Cake",
"Carved_Pumpkin",
"Chest",
"Clay",
"Coal_Block",
"Coal_Ore",
"Cobblestone",
"Crafting_Table",
"Creeper_Head",
"Diamond_Block",
"Diamond_Ore",
"Dirt",
"Dirt_Podzol",
"Dirt_Snow",
"Emerald_Block",
"Emerald_Ore",
"Enchanting_Table",
"End_Stone",
"Farmland",
"Furnace",
"Furnace_On",
"Glass",
"Glazed_Terracotta_Light_Blue",
"Glazed_Terracotta_Orange",
"Glazed_Terracotta_White",
"Glowstone",
"Gold_Block",
"Gold_Ore",
"Grass",
"Gravel",
"Hardened_Clay",
"Ice_Packed",
"Iron_Block",
"Iron_Ore",
"Lapis_Ore",
"Leaves_Birch",
"Leaves_Jungle",
"Leaves_Oak",
"Leaves_Spruce",
"Lectern_Book",
"Log_Acacia",
"Log_Birch",
"Log_DarkOak",
"Log_Jungle",
"Log_Oak",
"Log_Spruce",
"Mycelium",
"Nether_Brick",
"Netherrack",
"Obsidian",
"Planks_Acacia",
"Planks_Birch",
"Planks_DarkOak",
"Planks_Jungle",
"Planks_Oak",
"Planks_Spruce",
"Quartz_Ore",
"Red_Sand",
"Red_Sandstone",
"Redstone_Block",
"Redstone_Ore",
"Sand",
"Sandstone",
"Skeleton_Skull",
"Snow",
"Soul_Sand",
"Stone",
"Stone_Andesite",
"Stone_Diorite",
"Stone_Granite",
"TNT",
"Water",
"Wool",
}