mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-14 01:04:24 +00:00
Update FML:43d304243d3042Clean up a patchfec221fUpdate FML for MC 1.4.5b0f0635Fix for ModLoader static overrides not displaying.23a2513Fix up derpy file name handling: closes #127 Fix up duping childmods: cla6eaa2bFix spelling issue.c6a0741FML setup should now download and verify all the minecraft files needed5a1930eSmall fix to some MCP metadata for pre2418debaUpdate to MC 1.4.44ff2cffFix bug when a modloader mod is run on a dedicated server and has a conn
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 = 4;
|
|
//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 = 0;
|
|
//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);
|
|
}
|
|
}
|
|
|