类 TranslatableComponent
java.lang.Object
net.md_5.bungee.api.chat.BaseComponent
net.md_5.bungee.api.chat.TranslatableComponent
-
嵌套类概要
从类继承的嵌套类/接口 net.md_5.bungee.api.chat.BaseComponent
BaseComponent.LimitedStringVisitor, BaseComponent.StringVisitor -
构造器概要
构造器构造器说明TranslatableComponent(String translate, Object... with) Creates a translatable component with the passed substitutionsTranslatableComponent(TranslatableComponent original) Creates a translatable component from the original to clone it.TranslatableComponent(TranslationProvider translatable, Object... with) Creates a translatable component with the passed substitutions -
方法概要
修饰符和类型方法说明voidAdds a text substitution to the component.voidaddWith(BaseComponent component) Adds a component substitution to the component.Creates a duplicate of this TranslatableComponent.voidsetWith(List<BaseComponent> components) Sets the translation substitutions to be used in this component.protected voidtoLegacyText(BaseComponent.StringVisitor builder) protected voidtoPlainText(BaseComponent.StringVisitor builder) 从类继承的方法 net.md_5.bungee.api.chat.BaseComponent
addExtra, addExtra, applyStyle, copyFormatting, copyFormatting, copyFormatting, duplicateWithoutFormatting, getColor, getColorRaw, getFont, getFontRaw, getShadowColor, getShadowColorRaw, hasFormatting, hasStyle, isBold, isBoldRaw, isItalic, isItalicRaw, isObfuscated, isObfuscatedRaw, isStrikethrough, isStrikethroughRaw, isUnderlined, isUnderlinedRaw, retain, setBold, setColor, setExtra, setFont, setItalic, setObfuscated, setShadowColor, setStrikethrough, setStyle, setUnderlined, toLegacyText, toLegacyText, toPlainText, toPlainText
-
构造器详细资料
-
TranslatableComponent
Creates a translatable component from the original to clone it.- 参数:
original- the original for the new translatable component.
-
TranslatableComponent
Creates a translatable component with the passed substitutions- 参数:
translate- the translation keywith- theStrings andBaseComponents to use into the translation- 另请参阅:
-
translatesetWith(java.util.List)
-
TranslatableComponent
Creates a translatable component with the passed substitutions- 参数:
translatable- the translatable objectwith- theStrings andBaseComponents to use into the translation- 另请参阅:
-
translatesetWith(java.util.List)
-
-
方法详细资料
-
duplicate
Creates a duplicate of this TranslatableComponent.- 指定者:
duplicate在类中BaseComponent- 返回:
- the duplicate of this TranslatableComponent.
-
setWith
Sets the translation substitutions to be used in this component. Removes any previously set substitutions- 参数:
components- the components to substitute
-
addWith
Adds a text substitution to the component. The text will inherit this component's formatting- 参数:
text- the text to substitute
-
addWith
Adds a component substitution to the component. The text will inherit this component's formatting- 参数:
component- the component to substitute
-
toPlainText
-
toLegacyText
-