Interface IConfigValueLocalizationProvider<T>
- Type Parameters:
T- the config value option type
- All Known Subinterfaces:
IConfigListValueEditorSerializer<T>, IConfigValueEditorSerializer<T>
public interface IConfigValueLocalizationProvider<T>
Provides localized display text for serialized config value options.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<net.minecraft.network.chat.Component> getLocalizedValueDescription(String configValueLocalizationKey, T value) Get the translated description component for a value option.net.minecraft.network.chat.ComponentgetLocalizedValueName(String configValueLocalizationKey, T value) Get the translated name component for a value option.
-
Method Details
-
getLocalizedValueName
-
getLocalizedValueDescription
default Optional<net.minecraft.network.chat.Component> getLocalizedValueDescription(String configValueLocalizationKey, T value) Get the translated description component for a value option.- Parameters:
configValueLocalizationKey- the translation key for the owning config value's namevalue- the value option- Since:
- 0.1.0
-