-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathAvatarInfo.java
More file actions
52 lines (43 loc) · 1.77 KB
/
AvatarInfo.java
File metadata and controls
52 lines (43 loc) · 1.77 KB
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
/*
This file is part of AvatarMod.
AvatarMod is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
AvatarMod is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with AvatarMod. If not, see <http://www.gnu.org/licenses/>.
*/
package com.crowsofwar.avatar;
import com.crowsofwar.avatar.common.util.SemanticVersion;
import java.util.Locale;
/**
* Not using semantic versioning. This isn't an API, and I'm too lazy to be backwards-compatible.
* <p>
* Versioning scheme: AV{DEV_STAGE}{UPDATE}.{PATCH}{DEV_BUILD}
* <p>
* DEV_STAGE is for alpha("a"), beta("b"), or full release("").
* <p>
* If development version, DEV_BUILD is "_dev"
* <p>
* E.g. AV_B3.2-dev -> Beta, Update 3, patch 2, development build
*
* @author CrowsOfWar
*/
public class AvatarInfo {
/*
* Automatically updated when the mod is build
*/
public static final String MOD_ID = "@modid@";
public static final String MOD_NAME = "@name@";
public static final String MC_VERSION = "@mcversion@";
public static final String VERSION = "@version@";
public static final String DOMAIN = "@modid@:"; //for resources
public static final SemanticVersion SEMANTIC_VERSION = SemanticVersion.of(VERSION);
public static final boolean IS_PREVIEW = SEMANTIC_VERSION.isPreRelease();
public static boolean DEBUG = false;
public static final boolean IS_DEVELOPMENT = IS_PREVIEW || DEBUG;
}