Class ConfigValueLocalization

java.lang.Object
net.mezzdev.config.gui.api.ConfigValueLocalization

public final class ConfigValueLocalization extends Object
Localizes config values and categories for GUI display from GUI-specific providers or MezzConfig localization keys.
Since:
0.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.network.chat.Component
    getDescription(net.mezzdev.config.api.schema.category.IConfigEditorCategory category)
    Get the localized category description.
    static net.minecraft.network.chat.Component
    getDescription(net.mezzdev.config.api.value.IConfigValue<?> configValue)
    Get the localized config value description.
    static net.minecraft.network.chat.Component
    Get the localized config screen value description.
    static net.minecraft.network.chat.Component
    getName(net.mezzdev.config.api.schema.category.IConfigEditorCategory category)
    Get the localized category name.
    static net.minecraft.network.chat.Component
    getName(net.mezzdev.config.api.value.IConfigValue<?> configValue)
    Get the localized config value name.
    static net.minecraft.network.chat.Component
    getName(IConfigScreenValue<?> configValue)
    Get the localized config screen value name.
    static <T> Optional<net.minecraft.network.chat.Component>
    getValueDescription(net.mezzdev.config.api.value.IConfigValue<T> configValue, T value)
    Get the localized description for a config value option.
    static <T> Optional<net.minecraft.network.chat.Component>
    getValueDescription(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, String configValueLocalizationKey, T value)
    Get the localized description for a config value option.
    static <T> Optional<net.minecraft.network.chat.Component>
    getValueDescription(IConfigScreenValue<T> configValue, T value)
    Get the localized description for a config screen value option.
    static <T> net.minecraft.network.chat.Component
    getValueName(net.mezzdev.config.api.value.IConfigValue<T> configValue, T value)
    Get the localized display name for a config value option.
    static <T> net.minecraft.network.chat.Component
    getValueName(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, String configValueLocalizationKey, T value)
    Get the localized display name for a config value option.
    static <T> net.minecraft.network.chat.Component
    getValueName(IConfigScreenValue<T> configValue, T value)
    Get the localized display name for a config screen value option.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getName

      public static net.minecraft.network.chat.Component getName(net.mezzdev.config.api.schema.category.IConfigEditorCategory category)
      Get the localized category name.
      Since:
      0.1.0
    • getDescription

      public static net.minecraft.network.chat.Component getDescription(net.mezzdev.config.api.schema.category.IConfigEditorCategory category)
      Get the localized category description.
      Since:
      0.1.0
    • getName

      public static net.minecraft.network.chat.Component getName(net.mezzdev.config.api.value.IConfigValue<?> configValue)
      Get the localized config value name.
      Since:
      0.1.0
    • getName

      public static net.minecraft.network.chat.Component getName(IConfigScreenValue<?> configValue)
      Get the localized config screen value name.
      Since:
      0.1.0
    • getDescription

      public static net.minecraft.network.chat.Component getDescription(net.mezzdev.config.api.value.IConfigValue<?> configValue)
      Get the localized config value description.
      Since:
      0.1.0
    • getDescription

      public static net.minecraft.network.chat.Component getDescription(IConfigScreenValue<?> configValue)
      Get the localized config screen value description.
      Since:
      0.1.0
    • getValueName

      public static <T> net.minecraft.network.chat.Component getValueName(net.mezzdev.config.api.value.IConfigValue<T> configValue, T value)
      Get the localized display name for a config value option.
      Since:
      0.1.0
    • getValueName

      public static <T> net.minecraft.network.chat.Component getValueName(IConfigScreenValue<T> configValue, T value)
      Get the localized display name for a config screen value option.
      Since:
      0.1.0
    • getValueName

      public static <T> net.minecraft.network.chat.Component getValueName(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, String configValueLocalizationKey, T value)
      Get the localized display name for a config value option.
      Since:
      0.1.0
    • getValueDescription

      public static <T> Optional<net.minecraft.network.chat.Component> getValueDescription(net.mezzdev.config.api.value.IConfigValue<T> configValue, T value)
      Get the localized description for a config value option.
      Since:
      0.1.0
    • getValueDescription

      public static <T> Optional<net.minecraft.network.chat.Component> getValueDescription(IConfigScreenValue<T> configValue, T value)
      Get the localized description for a config screen value option.
      Since:
      0.1.0
    • getValueDescription

      public static <T> Optional<net.minecraft.network.chat.Component> getValueDescription(net.mezzdev.config.api.value.serializer.IConfigValueSerializer<T> serializer, String configValueLocalizationKey, T value)
      Get the localized description for a config value option.
      Since:
      0.1.0