Class ConfigValueLocalization
java.lang.Object
net.mezzdev.config.gui.api.ConfigValueLocalization
Localizes config values and categories for GUI display from GUI-specific providers or MezzConfig localization keys.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.network.chat.ComponentgetDescription(net.mezzdev.config.api.schema.category.IConfigEditorCategory category) Get the localized category description.static net.minecraft.network.chat.ComponentgetDescription(net.mezzdev.config.api.value.IConfigValue<?> configValue) Get the localized config value description.static net.minecraft.network.chat.ComponentgetDescription(IConfigScreenValue<?> configValue) Get the localized config screen value description.static net.minecraft.network.chat.ComponentgetName(net.mezzdev.config.api.schema.category.IConfigEditorCategory category) Get the localized category name.static net.minecraft.network.chat.ComponentgetName(net.mezzdev.config.api.value.IConfigValue<?> configValue) Get the localized config value name.static net.minecraft.network.chat.ComponentgetName(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.ComponentgetValueName(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.ComponentgetValueName(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.ComponentgetValueName(IConfigScreenValue<T> configValue, T value) Get the localized display name for a config screen value option.
-
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
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
-