Class CoalFabricMod

java.lang.Object
com.oliveryasuna.mc.coal.fabric.CoalFabricMod
All Implemented Interfaces:
net.fabricmc.api.ModInitializer

public final class CoalFabricMod extends Object implements net.fabricmc.api.ModInitializer
Fabric entry point for the COAL mod.

Kicks off Coal.bootstrap() eagerly so the discovered provider name shows up in the log at COAL mod-init, not at the first Coal.register(Class) call from some consumer mod later.

Wires FabricPlatform.setServer(net.minecraft.server.MinecraftServer) to server-lifecycle events so the main-thread executor targets the live server on the server dist.

  • Constructor Details

    • CoalFabricMod

      public CoalFabricMod()
  • Method Details

    • onInitialize

      public void onInitialize()
      Specified by:
      onInitialize in interface net.fabricmc.api.ModInitializer