From 48ef896e067669b16f5a87d66a241f44cfaf02ab Mon Sep 17 00:00:00 2001 From: James Seibel Date: Thu, 29 Jun 2023 20:46:33 -0500 Subject: [PATCH] set the api version in ModInfo to 1.0.0 and add patch version to the API --- api/src/main/java/com/seibel/distanthorizons/api/DhApi.java | 4 +++- .../java/com/seibel/distanthorizons/coreapi/ModInfo.java | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/src/main/java/com/seibel/distanthorizons/api/DhApi.java b/api/src/main/java/com/seibel/distanthorizons/api/DhApi.java index e3d855a40..a77444d47 100644 --- a/api/src/main/java/com/seibel/distanthorizons/api/DhApi.java +++ b/api/src/main/java/com/seibel/distanthorizons/api/DhApi.java @@ -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 diff --git a/api/src/main/java/com/seibel/distanthorizons/coreapi/ModInfo.java b/api/src/main/java/com/seibel/distanthorizons/coreapi/ModInfo.java index 26e777d24..52989f362 100644 --- a/api/src/main/java/com/seibel/distanthorizons/coreapi/ModInfo.java +++ b/api/src/main/java/com/seibel/distanthorizons/coreapi/ModInfo.java @@ -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; }