Package net.mcreator.preferences.entries
Class HiddenEntry<T>
java.lang.Object
net.mcreator.preferences.PreferencesEntry<T>
net.mcreator.preferences.entries.HiddenEntry<T>
-
Field Summary
Fields inherited from class net.mcreator.preferences.PreferencesEntry
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponent(Window parent, Consumer<EventObject> fct) Generate aJComponentfor thePreferencesDialog, so users can change the value.voidsetValueFromComponent(JComponent component) Methods inherited from class net.mcreator.preferences.PreferencesEntry
get, getID, getSection, getSectionKey, getSerializedValue, reset, set, setValueFromJsonElement, toString
-
Constructor Details
-
HiddenEntry
-
-
Method Details
-
getComponent
Description copied from class:PreferencesEntryGenerate a
JComponentfor thePreferencesDialog, so users can change the value.- Specified by:
getComponentin classPreferencesEntry<T>- Parameters:
parent-The component's parent, which is the opened
PreferencesDialog.fct-This is the
Consumerused to enable the apply button when the value of theJComponentis changed.- Returns:
The
JComponentto use inside thePreferencesDialogfor all preference entries using the same type.
-
setValueFromComponent
- Specified by:
setValueFromComponentin classPreferencesEntry<T>
-