init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package com.vaporvee.enoughmemory;
|
||||
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
import net.fabricmc.loader.api.FabricLoader;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class EnoughMemory implements ModInitializer {
|
||||
public static final String MOD_ID = "enoughmemory";
|
||||
|
||||
public static final Logger logger = LoggerFactory.getLogger("EnoughMemory");
|
||||
|
||||
@Override
|
||||
public void onInitialize() {
|
||||
if (FabricLoader.getInstance().getEnvironmentType() == EnvType.SERVER) {
|
||||
logger.info(MOD_ID + " is a client mod only!");
|
||||
return;
|
||||
}
|
||||
logger.info("Loading EnoughMemory mod.");
|
||||
}
|
||||
}
|
BIN
fabric/src/main/resources/assets/enoughmemory/icon.png
Normal file
BIN
fabric/src/main/resources/assets/enoughmemory/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
8
fabric/src/main/resources/enoughmemory.mixins.json
Normal file
8
fabric/src/main/resources/enoughmemory.mixins.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "com.vaporvee.enoughmemory.mixin",
|
||||
"compatibilityLevel": "JAVA_21",
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
46
fabric/src/main/resources/fabric.mod.json
Normal file
46
fabric/src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "enoughmemory",
|
||||
"version": "${version}",
|
||||
"name": "Enough Memory",
|
||||
"description": "It will show the user when they have set too less Java Memory. The amount of required memory can be adjusted with the config.",
|
||||
"authors": [
|
||||
{
|
||||
"name": "vaporvee",
|
||||
"contact": {
|
||||
"homepage" : "https://vaporvee.com"
|
||||
}
|
||||
}
|
||||
],
|
||||
"contact": {
|
||||
"sources": "https://github.com/vaporvee/EnoughMemory",
|
||||
"issues": "https://github.com/vaporvee/EnoughMemory/issues"
|
||||
},
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
"modmenu.discord": "https://discord.gg/StMHnsC9s2"
|
||||
}
|
||||
}
|
||||
},
|
||||
"license": "Apache License 2.0",
|
||||
"icon": "assets/enoughmemory/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"com.vaporvee.enoughmemory.EnoughMemory"
|
||||
],
|
||||
"client": [
|
||||
"com.vaporvee.enoughmemory.EnoughMemoryClient"
|
||||
]
|
||||
},
|
||||
"depends": {
|
||||
"fabricloader": ">=0.16.5",
|
||||
"minecraft": "~1.21.1",
|
||||
"java": ">=21",
|
||||
"fabric-api": "*"
|
||||
},
|
||||
"suggests": {
|
||||
"another-mod": "*"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user