Class ConfigEffects
java.lang.Object
net.ixdarklord.coolcatcanvas.api.client.gui.theme.ConfigEffects
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 Summary
Modifier and TypeMethodDescriptionstatic @Nullable ConfigEffectget(net.minecraft.resources.Identifier id) static Set<net.minecraft.resources.Identifier> ids()Every registered id.static voidregister(net.minecraft.resources.Identifier id, ConfigEffect effect) Registers an effect under an id, during client setup.
-
Method Details
-
register
Registers an effect under an id, during client setup.- Throws:
IllegalArgumentException- when the id is taken
-
get
-
ids
Every registered id.
-