Class ConfigEditors
java.lang.Object
net.ixdarklord.coolcatcore.internal.config.client.gui.editor.ConfigEditors
Client only: which widget edits which
ConfigType in the config screen. A mod with its own type registers
an editor for the type's class (or for one type instance); types without one get a text box using the type's
parse/format.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ValueEditorAn editor for the slot's type.static voidregister(Class<? extends ConfigType> typeClass, ValueEditor.Factory<?> factory) The editor for every type of this class (and its subclasses, unless they have their own).static <T> voidregister(ConfigType<T> type, ValueEditor.Factory<T> factory) The editor for one type instance, ahead of its class's.
-
Method Details
-
register
The editor for every type of this class (and its subclasses, unless they have their own). -
register
The editor for one type instance, ahead of its class's. -
create
An editor for the slot's type.
-