mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
Added per-world list of custom teleporters, Modders, use World.Load to populate this list. Changed the definition of our version schemes.
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
/**
|
|
* This software is provided under the terms of the Minecraft Forge Public
|
|
* License v1.0.
|
|
*/
|
|
|
|
package net.minecraftforge.common;
|
|
|
|
public class ForgeVersion
|
|
{
|
|
//This number is incremented every time we remove deprecated code/major API changes, never reset
|
|
public static final int majorVersion = 6;
|
|
//This number is incremented every minecraft release, never reset
|
|
public static final int minorVersion = 2;
|
|
//This number is incremented every time a interface changes or new major feature is added, and reset every Minecraft version
|
|
public static final int revisionVersion = 1;
|
|
//This number is incremented every time Jenkins builds Forge, and never reset. Should always be 0 in the repo code.
|
|
public static final int buildVersion = 0;
|
|
|
|
public static int getMajorVersion()
|
|
{
|
|
return majorVersion;
|
|
}
|
|
|
|
public static int getMinorVersion()
|
|
{
|
|
return minorVersion;
|
|
}
|
|
|
|
public static int getRevisionVersion()
|
|
{
|
|
return revisionVersion;
|
|
}
|
|
|
|
public static int getBuildVersion()
|
|
{
|
|
return buildVersion;
|
|
}
|
|
|
|
public static String getVersion()
|
|
{
|
|
return String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
|
|
}
|
|
}
|
|
|