rsxm-lib 0.1.0: версия библиотеки

Мод печатает Rsxm.describe() при старте, и несовпадение версий видно сразу,
а не превращается в NoSuchMethodError посреди сессии.
This commit is contained in:
SashegDev
2026-10-17 02:54:23 +03:00
parent c4d980eb19
commit e7bc91b597
+24
View File
@@ -0,0 +1,24 @@
package net.rsxm.lib;
/**
* What this library is and which version of it a mod was built against.
*
* A mod prints this in its log on startup, so a mismatch between the library a
* mod was compiled against and the one sitting in libs\ is visible immediately
* instead of turning into a NoSuchMethodError in the middle of a session.
*/
public final class Rsxm {
/** Bump when the public surface changes in a way that breaks compilation. */
public static final String VERSION = "0.1.0";
/** Where mods are expected to find this library. */
public static final String LIB_DIR = "libs";
private Rsxm() {
}
public static String describe() {
return "rsxm-lib " + VERSION;
}
}