Uses of Class
net.md_5.bungee.api.chat.BaseComponent
-
Packages that use BaseComponent Package Description net.md_5.bungee.api.chat net.md_5.bungee.api.chat.hover.content net.md_5.bungee.chat -
-
Uses of BaseComponent in net.md_5.bungee.api.chat
Subclasses of BaseComponent in net.md_5.bungee.api.chat Modifier and Type Class Description classKeybindComponentclassScoreComponentThis component displays the score based on a player score on the scoreboard.classSelectorComponentThis component processes a target selector into a pre-formatted set of discovered names.classTextComponentclassTranslatableComponentMethods in net.md_5.bungee.api.chat that return BaseComponent Modifier and Type Method Description BaseComponent[]ComponentBuilder. create()Returns the components needed to display the message created by this builder.gitabstract BaseComponentBaseComponent. duplicate()Clones the BaseComponent and returns the clone.BaseComponentBaseComponent. duplicateWithoutFormatting()Deprecated.API use discouraged, use traditional duplicatestatic BaseComponent[]TextComponent. fromLegacyText(String message)Converts the old formatting system that usedChatColor.COLOR_CHARinto the new json based system.static BaseComponent[]TextComponent. fromLegacyText(String message, ChatColor defaultColor)Converts the old formatting system that usedChatColor.COLOR_CHARinto the new json based system.BaseComponentComponentBuilder. getComponent(int pos)Gets the component part at the position of given index.BaseComponentComponentBuilder. getCurrentComponent()Gets the component at the position of the cursor.BaseComponent[]HoverEvent. getValue()Deprecated.Methods in net.md_5.bungee.api.chat that return types with arguments of type BaseComponent Modifier and Type Method Description List<BaseComponent>BaseComponent. getExtra()Appended components that inherit this component's formatting and eventsList<BaseComponent>ComponentBuilder. getParts()List<BaseComponent>TranslatableComponent. getWith()The components to substitute into the translationMethods in net.md_5.bungee.api.chat with parameters of type BaseComponent Modifier and Type Method Description voidBaseComponent. addExtra(BaseComponent component)Appends a component to the component.voidTranslatableComponent. addWith(BaseComponent component)Adds a component substitution to the component.ComponentBuilderComponentBuilder. append(BaseComponent component)Appends a component to the builder and makes it the current target for formatting.ComponentBuilderComponentBuilder. append(BaseComponent[] components)Appends the components to the builder and makes the last element the current target for formatting.ComponentBuilderComponentBuilder. append(BaseComponent[] components, ComponentBuilder.FormatRetention retention)Appends the components to the builder and makes the last element the current target for formatting.ComponentBuilderComponentBuilder. append(BaseComponent component, ComponentBuilder.FormatRetention retention)Appends a component to the builder and makes it the current target for formatting.voidBaseComponent. copyFormatting(BaseComponent component)Copies the events and formatting of a BaseComponent.voidBaseComponent. copyFormatting(BaseComponent component, boolean replace)Copies the events and formatting of a BaseComponent.voidBaseComponent. copyFormatting(BaseComponent component, ComponentBuilder.FormatRetention retention, boolean replace)Copies the specified formatting of a BaseComponent.static StringBaseComponent. toLegacyText(BaseComponent... components)Converts the components to a string that uses the old formatting codes (ChatColor.COLOR_CHARstatic StringBaseComponent. toPlainText(BaseComponent... components)Converts the components into a string without any formattingMethod parameters in net.md_5.bungee.api.chat with type arguments of type BaseComponent Modifier and Type Method Description voidBaseComponent. setExtra(List<BaseComponent> components)voidTranslatableComponent. setWith(List<BaseComponent> components)Sets the translation substitutions to be used in this component.Constructors in net.md_5.bungee.api.chat with parameters of type BaseComponent Constructor Description ComponentBuilder(BaseComponent component)Creates a ComponentBuilder with the given component as the first part.HoverEvent(HoverEvent.Action action, BaseComponent[] value)Deprecated.TextComponent(BaseComponent... extras)Creates a TextComponent with blank text and the extras set to the passed array -
Uses of BaseComponent in net.md_5.bungee.api.chat.hover.content
Methods in net.md_5.bungee.api.chat.hover.content that return BaseComponent Modifier and Type Method Description BaseComponentEntity. getName()Name to display as the entity.Methods in net.md_5.bungee.api.chat.hover.content with parameters of type BaseComponent Modifier and Type Method Description voidEntity. setName(BaseComponent name)Name to display as the entity.Constructors in net.md_5.bungee.api.chat.hover.content with parameters of type BaseComponent Constructor Description Entity(String type, @NonNull String id, BaseComponent name)Text(BaseComponent[] value) -
Uses of BaseComponent in net.md_5.bungee.chat
Fields in net.md_5.bungee.chat with type parameters of type BaseComponent Modifier and Type Field Description static ThreadLocal<Set<BaseComponent>>ComponentSerializer. serializedComponentsMethods in net.md_5.bungee.chat that return BaseComponent Modifier and Type Method Description BaseComponentComponentSerializer. deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)static BaseComponent[]ComponentSerializer. parse(String json)Methods in net.md_5.bungee.chat with parameters of type BaseComponent Modifier and Type Method Description protected voidBaseComponentSerializer. deserialize(com.google.gson.JsonObject object, BaseComponent component, com.google.gson.JsonDeserializationContext context)protected voidBaseComponentSerializer. serialize(com.google.gson.JsonObject object, BaseComponent component, com.google.gson.JsonSerializationContext context)static StringComponentSerializer. toString(BaseComponent component)static StringComponentSerializer. toString(BaseComponent... components)
-