Uses of Class
net.md_5.bungee.api.chat.BaseComponent
Package
Description
-
Uses of BaseComponent in net.md_5.bungee.api.chat
Modifier and TypeClassDescriptionfinal class
final class
This component displays the score based on a player score on the scoreboard.final class
This component processes a target selector into a pre-formatted set of discovered names.final class
final class
Modifier and TypeMethodDescriptionComponentBuilder.create()
Returns the components needed to display the message created by this builder.gitabstract BaseComponent
BaseComponent.duplicate()
Clones the BaseComponent and returns the clone.BaseComponent.duplicateWithoutFormatting()
Deprecated.API use discouraged, use traditional duplicatestatic BaseComponent[]
TextComponent.fromLegacyText
(String message) Converts the old formatting system that usedChatColor.COLOR_CHAR
into the new json based system.static BaseComponent[]
TextComponent.fromLegacyText
(String message, ChatColor defaultColor) Converts the old formatting system that usedChatColor.COLOR_CHAR
into the new json based system.ComponentBuilder.getComponent
(int pos) Gets the component part at the position of given index.ComponentBuilder.getCurrentComponent()
Gets the component at the position of the cursor.HoverEvent.getValue()
Deprecated.Modifier and TypeMethodDescriptionBaseComponent.getExtra()
Appended components that inherit this component's formatting and eventsComponentBuilder.getParts()
TranslatableComponent.getWith()
The components to substitute into the translationModifier and TypeMethodDescriptionvoid
BaseComponent.addExtra
(BaseComponent component) Appends a component to the component.void
TranslatableComponent.addWith
(BaseComponent component) Adds a component substitution to the component.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.void
BaseComponent.copyFormatting
(BaseComponent component) Copies the events and formatting of a BaseComponent.void
BaseComponent.copyFormatting
(BaseComponent component, boolean replace) Copies the events and formatting of a BaseComponent.void
BaseComponent.copyFormatting
(BaseComponent component, ComponentBuilder.FormatRetention retention, boolean replace) Copies the specified formatting of a BaseComponent.static String
BaseComponent.toLegacyText
(BaseComponent... components) Converts the components to a string that uses the old formatting codes (ChatColor.COLOR_CHAR
static String
BaseComponent.toPlainText
(BaseComponent... components) Converts the components into a string without any formattingModifier and TypeMethodDescriptionvoid
BaseComponent.setExtra
(List<BaseComponent> components) void
TranslatableComponent.setWith
(List<BaseComponent> components) Sets the translation substitutions to be used in this component.ModifierConstructorDescriptionComponentBuilder
(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
Modifier and TypeMethodDescriptionvoid
Entity.setName
(BaseComponent name) Name to display as the entity.ModifierConstructorDescriptionEntity
(String type, @NonNull String id, BaseComponent name) Text
(BaseComponent[] value) -
Uses of BaseComponent in net.md_5.bungee.chat
Modifier and TypeFieldDescriptionstatic final ThreadLocal<Set<BaseComponent>>
ComponentSerializer.serializedComponents
Modifier and TypeMethodDescriptionComponentSerializer.deserialize
(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static BaseComponent[]
ComponentSerializer.parse
(com.google.gson.stream.JsonReader reader) static BaseComponent[]
Modifier and TypeMethodDescriptionprotected void
BaseComponentSerializer.deserialize
(com.google.gson.JsonObject object, BaseComponent component, com.google.gson.JsonDeserializationContext context) protected void
BaseComponentSerializer.serialize
(com.google.gson.JsonObject object, BaseComponent component, com.google.gson.JsonSerializationContext context) static String
ComponentSerializer.toString
(BaseComponent component) static String
ComponentSerializer.toString
(BaseComponent... components)