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 Type
    Method
    Description
    default Optional<net.minecraft.network.chat.Component>
    getLocalizedValueDescription(String configValueLocalizationKey, T value)
    Get the translated description component for a value option.
    net.minecraft.network.chat.Component
    getLocalizedValueName(String configValueLocalizationKey, T value)
    Get the translated name component for a value option.
  • Method Details

    • getLocalizedValueName

      net.minecraft.network.chat.Component getLocalizedValueName(String configValueLocalizationKey, T value)
      Get the translated name component for a value option.
      Parameters:
      configValueLocalizationKey - the translation key for the owning config value's name
      value - the value option
      Since:
      0.1.0
    • 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 name
      value - the value option
      Since:
      0.1.0