mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-22 18:59:45 +00:00
move ModInfo.java back into Tags.java to unify with base buildscript logic
This commit is contained in:
4 files changed
+12
-12
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ developmentEnvironmentUserName = Developer
|
|||||||
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
|
# The string's content will be replaced with your mods version when compiled. You should use this to specify your mod's
|
||||||
# version in @Mod([...], version = VERSION, [...])
|
# version in @Mod([...], version = VERSION, [...])
|
||||||
# Leave these properties empty to skip individual token replacements
|
# Leave these properties empty to skip individual token replacements
|
||||||
replaceGradleTokenInFile = ModInfo.java
|
replaceGradleTokenInFile = Tags.java
|
||||||
gradleTokenModId = GRADLETOKEN_MODID
|
gradleTokenModId = GRADLETOKEN_MODID
|
||||||
gradleTokenModName = GRADLETOKEN_MODNAME
|
gradleTokenModName = GRADLETOKEN_MODNAME
|
||||||
gradleTokenVersion = GRADLETOKEN_VERSION
|
gradleTokenVersion = GRADLETOKEN_VERSION
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import java.io.File;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@MCVersion("1.7.10")
|
@MCVersion("1.7.10")
|
||||||
@Name(ModInfo.MODID)
|
@Name(Tags.MODID)
|
||||||
@SortingIndex(500)
|
@SortingIndex(500)
|
||||||
public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
||||||
public static File mcDir;
|
public static File mcDir;
|
||||||
@@ -21,7 +21,7 @@ public class CoreLoadingPlugin implements IFMLLoadingPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getModContainerClass() {
|
public String getModContainerClass() {
|
||||||
return ModInfo.GROUPNAME + ".internal.FalsePatternLib";
|
return Tags.GROUPNAME + ".internal.FalsePatternLib";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import java.util.Arrays;
|
|||||||
*/
|
*/
|
||||||
public class FalsePatternLib extends DummyModContainer {
|
public class FalsePatternLib extends DummyModContainer {
|
||||||
@Getter
|
@Getter
|
||||||
private static final Logger log = LogManager.getLogger(ModInfo.MODNAME);
|
private static final Logger log = LogManager.getLogger(Tags.MODNAME);
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private static final boolean developerEnvironment = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
|
private static final boolean developerEnvironment = (boolean) Launch.blackboard.get("fml.deobfuscatedEnvironment");
|
||||||
@@ -26,13 +26,13 @@ public class FalsePatternLib extends DummyModContainer {
|
|||||||
super(new ModMetadata());
|
super(new ModMetadata());
|
||||||
log.info("All your libraries are belong to us!");
|
log.info("All your libraries are belong to us!");
|
||||||
val meta = getMetadata();
|
val meta = getMetadata();
|
||||||
meta.modId = ModInfo.MODID;
|
meta.modId = Tags.MODID;
|
||||||
meta.name = ModInfo.MODNAME;
|
meta.name = Tags.MODNAME;
|
||||||
meta.version = ModInfo.VERSION;
|
meta.version = Tags.VERSION;
|
||||||
meta.url = ModInfo.URL;
|
meta.url = Tags.URL;
|
||||||
meta.credits = ModInfo.CREDITS;
|
meta.credits = Tags.CREDITS;
|
||||||
meta.authorList = Arrays.asList(ModInfo.AUTHORS);
|
meta.authorList = Arrays.asList(Tags.AUTHORS);
|
||||||
meta.description = ModInfo.DESCRIPTION;
|
meta.description = Tags.DESCRIPTION;
|
||||||
meta.useDependencyInformation = true;
|
meta.useDependencyInformation = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package com.falsepattern.lib.internal;
|
package com.falsepattern.lib.internal;
|
||||||
|
|
||||||
public class ModInfo {
|
public class Tags {
|
||||||
public static final String MODID = "GRADLETOKEN_MODID";
|
public static final String MODID = "GRADLETOKEN_MODID";
|
||||||
public static final String MODNAME = "GRADLETOKEN_MODNAME";
|
public static final String MODNAME = "GRADLETOKEN_MODNAME";
|
||||||
public static final String VERSION = "GRADLETOKEN_VERSION";
|
public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||||
Reference in new issue
Block a user