使用YACL Config API自动将功能开关状态保存到文件内

使用文件系统监听器使配置文件被外部更改时可以自动重载到游戏内
解决直接连接窗口内输入框里的服务器IP没有被移除空格处理的问题
在移除空格之后打印日志
添加英文README
重新给main入口类添加`@Deprecated`标记,这东西确实用不到,后面看要不要直接删了
为AI Agent添加AGENTS.md文件以指示通用提示词
This commit is contained in:
TheWhiteDog9487
2026-06-04 11:42:35 +08:00
committed by TheWhiteDog9487
parent 5cb7a45ff4
commit 92d1e282d8
17 changed files with 289 additions and 65 deletions

View File

@@ -2,15 +2,16 @@ package xyz.thewhitedog9487;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* 所有的代码都在client源集内
* @deprecated 目前没有任何用途
* @see ServerAddressSpaceFixClient
*/
@Deprecated
public class ServerAddressSpaceFix implements ModInitializer {
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
public static final String ModID = "serveraddressspacefix";
public static final Logger LOGGER = LoggerFactory.getLogger(ModID);
@Override
public void onInitialize() {
@@ -18,6 +19,5 @@ public class ServerAddressSpaceFix implements ModInitializer {
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
LOGGER.info("Hello Fabric world!");
}
}