Uses of Class
net.md_5.bungee.api.chat.ComponentBuilder
-
Uses of ComponentBuilder in net.md_5.bungee.api.chat
Modifier and TypeMethodDescriptionAppends the text to the builder and makes it the current target for formatting.ComponentBuilder.append
(String text, ComponentBuilder.FormatRetention retention) Appends the text to the builder and makes it the current target for formatting.ComponentBuilder.append
(BaseComponent component) Appends a component to the builder and makes it the current target for formatting.ComponentBuilder.append
(BaseComponent[] components) Appends the components to the builder and makes the last element 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) Allows joining additional components to this builder using the givenComponentBuilder.Joiner
andComponentBuilder.FormatRetention.ALL
.ComponentBuilder.append
(ComponentBuilder.Joiner joiner, ComponentBuilder.FormatRetention retention) Allows joining additional components to this builder using the givenComponentBuilder.Joiner
.ComponentBuilder.append
(TranslationProvider translatable) Appends theTranslationProvider
object to the builder and makes the last element the current target for formatting.ComponentBuilder.append
(TranslationProvider translatable, ComponentBuilder.FormatRetention retention) Appends theTranslationProvider
object to the builder and makes the last element the current target for formatting.ComponentBuilder.appendLegacy
(String text) Parse text to BaseComponent[] with colors and format, appends the text to the builder and makes it the current target for formatting.ComponentBuilder.bold
(boolean bold) Sets whether the current part is bold.Sets the color of the current part.ComponentBuilder.event
(ClickEvent clickEvent) Sets the click event for the current part.ComponentBuilder.event
(HoverEvent hoverEvent) Sets the hover event for the current part.Sets the font of the current part.Sets the insertion text for the current part.ComponentBuilder.italic
(boolean italic) Sets whether the current part is italic.ComponentBuilder.Joiner.join
(ComponentBuilder componentBuilder, ComponentBuilder.FormatRetention retention) Joins additional components to the providedComponentBuilder
and then returns it to fulfill a chain pattern.ComponentBuilder.obfuscated
(boolean obfuscated) Sets whether the current part is obfuscated.ComponentBuilder.reset()
Sets the current part back to normal settings.ComponentBuilder.resetCursor()
Resets the cursor to index of the last element.ComponentBuilder.retain
(ComponentBuilder.FormatRetention retention) Retains only the specified formatting.ComponentBuilder.setCursor
(int pos) Sets the position of the current component to be modifiedComponentBuilder.strikethrough
(boolean strikethrough) Sets whether the current part is strikethrough.ComponentBuilder.style
(ComponentStyle style) Applies the providedComponentStyle
to the current part.ComponentBuilder.underlined
(boolean underlined) Sets whether the current part is underlined.Modifier and TypeMethodDescriptionComponentBuilder.Joiner.join
(ComponentBuilder componentBuilder, ComponentBuilder.FormatRetention retention) Joins additional components to the providedComponentBuilder
and then returns it to fulfill a chain pattern.ModifierConstructorDescriptionComponentBuilder
(ComponentBuilder original) Creates a ComponentBuilder from the other given ComponentBuilder to clone it.