枚举的使用
net.md_5.bungee.api.chat.ComponentBuilder.FormatRetention
-
net.md_5.bungee.api.chat中ComponentBuilder.FormatRetention的使用
修饰符和类型方法说明返回带有指定名称的该类型的枚举常量。static ComponentBuilder.FormatRetention[]ComponentBuilder.FormatRetention.values()按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。修饰符和类型方法说明ComponentBuilder.append(String text, ComponentBuilder.FormatRetention retention) Appends the text to the builder and makes it the current target for formatting.ComponentBuilder.append(BaseComponent[] components, ComponentBuilder.FormatRetention retention) Appends the components to the builder and makes the last element the current target for formatting.ComponentBuilder.append(BaseComponent component, ComponentBuilder.FormatRetention retention) Appends a component to the builder and makes it the current target for formatting.ComponentBuilder.append(ComponentBuilder.Joiner joiner, ComponentBuilder.FormatRetention retention) Allows joining additional components to this builder using the givenComponentBuilder.Joiner.ComponentBuilder.append(TranslationProvider translatable, ComponentBuilder.FormatRetention retention) Appends theTranslationProviderobject to the builder and makes the last element the current target for formatting.voidBaseComponent.copyFormatting(BaseComponent component, ComponentBuilder.FormatRetention retention, boolean replace) Copies the specified formatting of a BaseComponent.ComponentBuilder.Joiner.join(ComponentBuilder componentBuilder, ComponentBuilder.FormatRetention retention) Joins additional components to the providedComponentBuilderand then returns it to fulfill a chain pattern.voidBaseComponent.retain(ComponentBuilder.FormatRetention retention) Retains only the specified formatting.ComponentBuilder.retain(ComponentBuilder.FormatRetention retention) Retains only the specified formatting.