001    /**
002     * This software is provided under the terms of the Minecraft Forge Public
003     * License v1.0.
004     */
005    
006    package net.minecraftforge.common;
007    
008    public class ForgeVersion
009    {
010        //This number is incremented every time we remove deprecated code/major API changes, never reset
011        public static final int majorVersion    = 6;
012        //This number is incremented every minecraft release, never reset
013        public static final int minorVersion    = 6;
014        //This number is incremented every time a interface changes or new major feature is added, and reset every Minecraft version
015        public static final int revisionVersion = 0;
016        //This number is incremented every time Jenkins builds Forge, and never reset. Should always be 0 in the repo code.
017        public static final int buildVersion    = 497;
018    
019        public static int getMajorVersion()
020        {
021            return majorVersion;
022        }
023    
024        public static int getMinorVersion()
025        {
026            return minorVersion;
027        }
028    
029        public static int getRevisionVersion()
030        {
031            return revisionVersion;
032        }
033    
034        public static int getBuildVersion()
035        {
036            return buildVersion;
037        }
038    
039        public static String getVersion()
040        {
041            return String.format("%d.%d.%d.%d", majorVersion, minorVersion, revisionVersion, buildVersion);
042        }
043    }
044