Class ClientHooks

java.lang.Object
my.celium.org.client.ClientHooks

public final class ClientHooks extends Object
Client-only entry points for Mycel's config UI.

Never reference this class from common/server code - it (transitively) loads net.minecraft.client classes, which do not exist on dedicated servers. Server-safe callers go through Mycel.openConfigScreen(...), which uses a reflection-guarded proxy. Loader client entrypoints may call these methods directly.

  • Method Details

    • createConfigScreen

      public static net.minecraft.client.gui.screens.Screen createConfigScreen(net.minecraft.client.gui.screens.Screen parent, MycelConfig config)
      Creates the config screen for a live config handle. Client only.
    • createConfigScreen

      public static net.minecraft.client.gui.screens.Screen createConfigScreen(Object parent, String modId)
      Creates the config screen for modId, or parent when the mod has no Mycel config. Client only.