Interface DedicatedServerModInitializer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public interface DedicatedServerModInitializer
A mod initializer ran only on EnvType.SERVER.

In fabric.mod.json, the entrypoint is defined with server key.

See Also:
ModInitializer, ClientModInitializer, FabricLoader.getEntrypointContainers(String, Class)
  • Method Summary

    Modifier and Type Method Description
    void onInitializeServer()
    Runs the mod initializer on the server environment.
  • Method Details

    • onInitializeServer

      void onInitializeServer()
      Runs the mod initializer on the server environment.