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 {
|
2014-05-11 14:02:32 +02:00
|
|
|
private static String major, minor, rev, build, mcversion;
|
2012-06-26 22:12:36 +02:00
|
|
|
|
2012-12-18 17:22:21 +01: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-12-18 17:22:21 +01:00
|
|
|
public static String fullVersionString()
|
|
|
|
|
{
|
|
|
|
|
return String.format("%s.%s.%s build %s", major, minor, rev, build);
|
|
|
|
|
}
|
2012-03-29 06:31:46 +02:00
|
|
|
}
|