mirror of
https://github.com/TheWhiteDog9487/ServerAddressSpaceFix.git
synced 2026-06-15 11:14:44 +08:00
同步Fabric Mod Template那边的Kotlin DSL官方配置 移除main入口类的`@Deprecated`标记 ( 我当初为什么要弃用它? 补全ChangeLog.md ( 已经彻底忘记它的存在了 更新Github Action配置 更新Gradle版本 由于本次更改不存在对玩家具有实质影响的内容,故合并到下一个Mod版本内一并发布
23 lines
800 B
Java
23 lines
800 B
Java
package xyz.thewhitedog9487;
|
|
|
|
import net.fabricmc.api.ModInitializer;
|
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
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() {
|
|
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
|
// However, some things (like resources) may still be uninitialized.
|
|
// Proceed with mild caution.
|
|
|
|
LOGGER.info("Hello Fabric world!");
|
|
}
|
|
} |