Class ClientConfigManager

java.lang.Object
net.ixdarklord.coolcatcore.internal.config.client.ClientConfigManager

public final class ClientConfigManager extends Object
  • Method Details

    • init

      public static void init()
      Called once by each loader's client setup.
    • access

      public static ClientConfigManager.Access access(Config config)
    • hasServerValues

      public static boolean hasServerValues(Config config)
      Whether the server sent its values of this config in this session.
    • onSync

      public static void onSync(ConfigNetwork.SyncPayload payload)
    • onStartupCheck

      public static void onStartupCheck(ConfigNetwork.StartupCheckPayload payload, Consumer<net.minecraft.network.chat.Component> disconnect)
    • onUpdateResult

      public static void onUpdateResult(ConfigNetwork.UpdateResultPayload payload)
    • sendUpdate

      public static void sendUpdate(ConfigImpl config, com.google.gson.JsonObject changes)
    • setMismatchScreen

      public static void setMismatchScreen(BiFunction<net.minecraft.client.gui.screens.Screen, List<ClientConfigManager.StartupMismatch>, net.minecraft.client.gui.screens.Screen> factory)
      Sets the screen shown after a startup mismatch disconnected the player, over the disconnect screen. Without one, the disconnect message (which lists the differences) is all.
    • openLater

      public static void openLater(Supplier<net.minecraft.client.gui.screens.Screen> screen)
      Opens a screen next tick, once whatever is closing (the chat, after a command) has closed.
    • toast

      public static void toast(net.minecraft.network.chat.Component title, @Nullable @Nullable net.minecraft.network.chat.Component message)
      A notice in the corner: a short title (usually the config's name) over a message, which wraps so it never runs past the toast. It replaces the previous one.