set the api version in ModInfo to 1.0.0 and add patch version to the API

This commit is contained in:
James Seibel
2023-06-29 20:46:33 -05:00
parent e2a3f23e91
commit 48ef896e06
2 changed files with 7 additions and 3 deletions
@@ -27,7 +27,7 @@ import com.seibel.distanthorizons.coreapi.interfaces.dependencyInjection.IOverri
* the concrete object we replaced, there would be issues.
*
* @author James Seibel
* @version 2023-2-9
* @version 2023-6-29
*/
public class DhApi
{
@@ -78,6 +78,8 @@ public class DhApi
public static int getApiMajorVersion() { return ModInfo.API_MAJOR_VERSION; }
/** This version should be updated whenever new methods are added to the Distant Horizons API. */
public static int getApiMinorVersion() { return ModInfo.API_MINOR_VERSION; }
/** This version should be updated whenever non-breaking fixes are added to the Distant Horizons API. */
public static int getApiPatchVersion() { return ModInfo.API_PATH_VERSION; }
/**
* Returns the mod's semantic version number in the format: Major.Minor.Patch
@@ -24,7 +24,7 @@ package com.seibel.distanthorizons.coreapi;
*
* @author James Seibel
* @author Ran
* @version 2022-4-27
* @version 2023-6-29
*/
public final class ModInfo
{
@@ -40,8 +40,10 @@ public final class ModInfo
public static boolean IS_DEV_BUILD = VERSION.toLowerCase().contains("dev");
/** This version should only be updated when breaking changes are introduced to the DH API */
public static final int API_MAJOR_VERSION = 0;
public static final int API_MAJOR_VERSION = 1;
/** This version should be updated whenever new methods are added to the DH API */
public static final int API_MINOR_VERSION = 0;
/** This version should be updated whenever non-breaking fixes are added to the DH API */
public static final int API_PATH_VERSION = 0;
}