2012-04-25 03:17:23 +02:00
|
|
|
/*******************************************************************************
|
2012-06-03 06:21:20 +02:00
|
|
|
* Copyright (c) 2012 cpw. All rights reserved. This program and the accompanying materials are made available under the terms of the GNU Public License v3.0
|
|
|
|
* which accompanies this distribution, and is available at http://www.gnu.org/licenses/gpl.html
|
2012-06-26 22:12:36 +02:00
|
|
|
*
|
2012-06-03 06:21:20 +02:00
|
|
|
* Contributors: cpw - initial API and implementation
|
2012-04-25 03:17:23 +02:00
|
|
|
******************************************************************************/
|
2012-03-29 06:31:46 +02:00
|
|
|
package cpw.mods.ironchest;
|
|
|
|
|
2012-06-03 06:21:20 +02:00
|
|
|
import java.util.Properties;
|
2012-03-29 06:31:46 +02:00
|
|
|
|
|
|
|
public class Version {
|
2012-06-03 06:21:20 +02:00
|
|
|
private static String major;
|
|
|
|
private static String minor;
|
|
|
|
private static String rev;
|
|
|
|
private static String build;
|
2012-12-13 14:03:23 +01:00
|
|
|
private static String mcversion;
|
2012-06-26 22:12:36 +02:00
|
|
|
|
2012-09-18 07:09:32 +02:00
|
|
|
static void init(Properties properties) {
|
|
|
|
if (properties != null) {
|
|
|
|
major = properties.getProperty("IronChest.build.major.number");
|
|
|
|
minor = properties.getProperty("IronChest.build.minor.number");
|
|
|
|
rev = properties.getProperty("IronChest.build.revision.number");
|
|
|
|
build = properties.getProperty("IronChest.build.number");
|
|
|
|
mcversion = properties.getProperty("IronChest.build.mcversion");
|
2012-06-03 06:21:20 +02:00
|
|
|
}
|
|
|
|
}
|
2012-10-30 03:25:19 +01:00
|
|
|
|
2012-06-26 22:27:50 +02:00
|
|
|
public static String fullVersionString() {
|
2012-09-18 07:09:32 +02:00
|
|
|
return String.format("%s.%s.%s build %s", major,minor,rev, build);
|
2012-06-26 22:27:50 +02:00
|
|
|
}
|
2012-03-29 06:31:46 +02:00
|
|
|
}
|