ported and updated cloth /config and added basic ram allocation checking
This commit is contained in:
@@ -3,6 +3,16 @@ plugins {
|
||||
id 'net.neoforged.moddev'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "https://maven.shedaniel.me/" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.moandjiezana.toml:toml4j:0.7.2'
|
||||
implementation "me.shedaniel.cloth:cloth-config-neoforge:18.0.145"
|
||||
}
|
||||
|
||||
neoForge {
|
||||
version = neoforge_version
|
||||
// Automatically enable neoforge AccessTransformers if the file exists
|
||||
|
@@ -1,6 +1,7 @@
|
||||
package com.vaporvee.loadsupport;
|
||||
|
||||
|
||||
import com.vaporvee.loadsupport.platform.Services;
|
||||
import net.neoforged.bus.api.IEventBus;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
|
||||
@@ -8,14 +9,6 @@ import net.neoforged.fml.common.Mod;
|
||||
public class LoadSupport {
|
||||
|
||||
public LoadSupport(IEventBus eventBus) {
|
||||
|
||||
// This method is invoked by the NeoForge mod loader when it is ready
|
||||
// to load your mod. You can access NeoForge and Common code in this
|
||||
// project.
|
||||
|
||||
// Use NeoForge to bootstrap the Common mod.
|
||||
Constants.LOG.info("Hello NeoForge world!");
|
||||
CommonClass.init();
|
||||
|
||||
}
|
||||
}
|
@@ -0,0 +1,20 @@
|
||||
package com.vaporvee.loadsupport.platform;
|
||||
|
||||
import com.vaporvee.loadsupport.CommonClass;
|
||||
import com.vaporvee.loadsupport.Constants;
|
||||
import com.vaporvee.loadsupport.LSConfig;
|
||||
import com.vaporvee.loadsupport.platform.services.IConfig;
|
||||
import me.shedaniel.autoconfig.AutoConfig;
|
||||
import me.shedaniel.autoconfig.annotation.Config;
|
||||
import me.shedaniel.autoconfig.serializer.Toml4jConfigSerializer;
|
||||
|
||||
@Config(name = Constants.MOD_ID)
|
||||
public class LSConfigNeoForge implements IConfig {
|
||||
public static LSConfig config;
|
||||
@Override
|
||||
public void InitConfig() {
|
||||
AutoConfig.register(LSConfig.class, Toml4jConfigSerializer::new);
|
||||
config = AutoConfig.getConfigHolder(LSConfig.class).getConfig();
|
||||
CommonClass.checkConfig(config);
|
||||
}
|
||||
}
|
@@ -0,0 +1 @@
|
||||
com.vaporvee.loadsupport.platform.LSConfigNeoForge
|
Reference in New Issue
Block a user