Class ListValueEditorMetadata<T>
java.lang.Object
net.mezzdev.config.gui.internal.ConfigValueEditorMetadata<List<T>>
net.mezzdev.config.gui.internal.ListValueEditorMetadata<T>
- All Implemented Interfaces:
IConfigListValueEditorMetadata<T>, IConfigValueEditorMetadata<List<T>>, IConfigValueLocalizationProvider<List<T>>
public class ListValueEditorMetadata<T>
extends ConfigValueEditorMetadata<List<T>>
implements IConfigListValueEditorMetadata<T>
Standard list presentation with metadata for each element.
-
Constructor Summary
ConstructorsConstructorDescriptionListValueEditorMetadata(net.mezzdev.config.api.value.serializer.IConfigListValueSerializer<T> serializer, boolean allowsRemovingValues) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true when entries may be removed from the displayed list.getElementMetadata(T value) Get the editor metadata for a list element.net.minecraft.network.chat.ComponentgetLocalizedValueName(String localizationKey, List<T> values) Get the translated name component for a value option.Methods inherited from class ConfigValueEditorMetadata
getAllValidValues, getEditorType, getLocalizedValueDescription, isValidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IConfigValueEditorMetadata
getAllValidValues, getEditorType, isValidMethods inherited from interface IConfigValueLocalizationProvider
getLocalizedValueDescription
-
Constructor Details
-
ListValueEditorMetadata
public ListValueEditorMetadata(net.mezzdev.config.api.value.serializer.IConfigListValueSerializer<T> serializer, boolean allowsRemovingValues)
-
-
Method Details
-
getElementMetadata
Description copied from interface:IConfigListValueEditorMetadataGet the editor metadata for a list element.- Specified by:
getElementMetadatain interfaceIConfigListValueEditorMetadata<T>- Parameters:
value- the element to display or edit
-
allowsRemovingValues
public boolean allowsRemovingValues()Description copied from interface:IConfigListValueEditorMetadataReturn true when entries may be removed from the displayed list.- Specified by:
allowsRemovingValuesin interfaceIConfigListValueEditorMetadata<T>
-
getLocalizedValueName
public net.minecraft.network.chat.Component getLocalizedValueName(String localizationKey, List<T> values) Description copied from interface:IConfigValueLocalizationProviderGet the translated name component for a value option.- Specified by:
getLocalizedValueNamein interfaceIConfigValueLocalizationProvider<T>- Overrides:
getLocalizedValueNamein classConfigValueEditorMetadata<List<T>>- Parameters:
localizationKey- the translation key for the owning config value's namevalues- the value option
-