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
-
Method Summary
Modifier and TypeMethodDescriptiongetComponent
(Window parent, Consumer<EventObject> fct) Generate aJComponent
for thePreferencesDialog
, so users can change the value.void
setValueFromComponent
(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:PreferencesEntry
Generate a
JComponent
for thePreferencesDialog
, so users can change the value.- Specified by:
getComponent
in classPreferencesEntry<T>
- Parameters:
parent
-The component's parent, which is the opened
PreferencesDialog
.fct
-This is the
Consumer
used to enable the apply button when the value of theJComponent
is changed.- Returns:
The
JComponent
to use inside thePreferencesDialog
for all preference entries using the same type.
-
setValueFromComponent
- Specified by:
setValueFromComponent
in classPreferencesEntry<T>
-