Class ConfigEffects

java.lang.Object
net.ixdarklord.coolcatcore.api.config.client.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.ResourceLocation 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.ResourceLocation id)
    • ids

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