Class ConfigEffects

java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.gui.theme.ConfigEffects

public final class ConfigEffects extends Object
Client only: the registry of config screen effects, by id. Themes name the effects they use by these ids; one naming an id nobody registered skips it (and logs it once).

Built in: ConfigTheme.STARFALL (soft glows and falling stars, every theme's default).

  • Method Details

    • register

      public static void register(net.minecraft.resources.Identifier id, ConfigEffect effect)
      Registers an effect under an id, during client setup.
      Throws:
      IllegalArgumentException - when the id is taken
    • get

      @Nullable public static @Nullable ConfigEffect get(net.minecraft.resources.Identifier id)
    • ids

      public static Set<net.minecraft.resources.Identifier> ids()
      Every registered id.