接口 IAdventureLocalizations
- 所有超级接口:
cn.afternode.commons.localizations.ILocalizations
- 所有已知实现类:
ConfigurationLocalizations,JsonLocalizations
public interface IAdventureLocalizations
extends cn.afternode.commons.localizations.ILocalizations
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明net.kyori.adventure.text.TextComponentGet localizations without any placeholder and deserialize with legacy serializernet.kyori.adventure.text.TextComponentGet localizations with java formatter and deserialize with legacy serializernet.kyori.adventure.text.TextComponentGet localizations with specified placeholders and deserialize with legacy serializernet.kyori.adventure.text.ComponentGet localizations without any placeholder and deserialize with MiniMessagenet.kyori.adventure.text.ComponentGet localizations, format with Java formatter and deserialize with MiniMessagenet.kyori.adventure.text.ComponentGet localizations with specified placeholders and deserialize with MiniMessagevoidwithLegacySerializer(net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer serializer) Set current legacy serializervoidwithMiniMessage(net.kyori.adventure.text.minimessage.MiniMessage mm) Set current MiniMessage从接口继承的方法 cn.afternode.commons.localizations.ILocalizations
get, get, get, keys, withFallback
-
方法详细资料
-
legacy
Get localizations without any placeholder and deserialize with legacy serializer- 参数:
key- Localization key- 返回:
- Result localization or provided key if not found
-
legacy
Get localizations with specified placeholders and deserialize with legacy serializer- 参数:
key- Localization keyplaceholders- Placeholders- 返回:
- Result localizations with placeholders applied, or provided key if not found
-
legacy
Get localizations with java formatter and deserialize with legacy serializer- 参数:
key- Localization keyargs- Formater replacements- 返回:
- Result localizations with String#format
- 另请参阅:
-
mini
Get localizations without any placeholder and deserialize with MiniMessage- 参数:
key- Localization key- 返回:
- Result localization or provided key if not found
-
mini
Get localizations with specified placeholders and deserialize with MiniMessage- 参数:
key- Localization keyplaceholders- Placeholders- 返回:
- Result localizations with placeholders applied, or provided key if not found
-
mini
Get localizations, format with Java formatter and deserialize with MiniMessage- 参数:
key- Localization keyargs- Formater replacements- 返回:
- Result localizations with String#format
- 另请参阅:
-
withLegacySerializer
void withLegacySerializer(net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer serializer) Set current legacy serializer- 参数:
serializer- Serializer
-
withMiniMessage
void withMiniMessage(net.kyori.adventure.text.minimessage.MiniMessage mm) Set current MiniMessage- 参数:
mm- instance
-