Uses of Interface
net.kyori.adventure.text.ComponentLike
Packages that use ComponentLike
Package
Description
A receiver of Minecraft media.
Boss bars.
Chat-related data.
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
A wrapper around SLF4J providing methods for formatted logging of Components.
Specification of the API for customizing tags understood by MiniMessage.
Tools for resolving tags based on tag information.
Tools for working with Adventure's translation API.
-
Uses of ComponentLike in net.kyori.adventure.audience
Methods in net.kyori.adventure.audience with parameters of type ComponentLikeModifier and TypeMethodDescriptiondefault voidAudience.sendActionBar(ComponentLike message) Sends a message on the action bar.Audiences.sendingMessage(ComponentLike message) Creates an action to send a message.default voidAudience.sendMessage(ComponentLike message) Sends a system chat message to thisAudience.default voidAudience.sendMessage(ComponentLike message, ChatType.Bound boundChatType) Sends a message to thisAudiencewith the providedbound chat type.default voidAudience.sendPlayerListFooter(ComponentLike footer) Sends the player list footer.default voidAudience.sendPlayerListHeader(ComponentLike header) Sends the player list header.default voidAudience.sendPlayerListHeaderAndFooter(ComponentLike header, ComponentLike footer) Sends the player list header and footer. -
Uses of ComponentLike in net.kyori.adventure.bossbar
Methods in net.kyori.adventure.bossbar with parameters of type ComponentLikeModifier and TypeMethodDescriptionstatic BossBarBossBar.bossBar(ComponentLike name, float progress, BossBar.Color color, BossBar.Overlay overlay) Creates a new bossbar.static BossBarBossBar.bossBar(ComponentLike name, float progress, BossBar.Color color, BossBar.Overlay overlay, Set<BossBar.Flag> flags) Creates a new bossbar.default BossBarBossBar.name(ComponentLike name) Sets the name. -
Uses of ComponentLike in net.kyori.adventure.chat
Methods in net.kyori.adventure.chat with parameters of type ComponentLikeModifier and TypeMethodDescriptiondefault ChatType.BoundChatType.bind(ComponentLike name) Creates a bound chat type with a nameComponent.default ChatType.BoundChatType.bind(ComponentLike name, @Nullable ComponentLike target) Creates a bound chat type with a name and targetComponent.static SignedMessageSignedMessage.system(String message, @Nullable ComponentLike unsignedContent) Creates a systemSignedMessage. -
Uses of ComponentLike in net.kyori.adventure.text
Subinterfaces of ComponentLike in net.kyori.adventure.textModifier and TypeInterfaceDescriptioninterfaceGiven an in-game position, this component reads the NBT of the associated block and displays that information.static interfaceAn NBT component builder.interfaceA Component is an immutable object that represents how text is displayed Minecraft clients.interfaceComponentBuilder<C extends Component, B extends ComponentBuilder<C,B>> A component builder.interfaceGiven a Minecraft selector, this component reads the NBT of the associated entity and displays that information.static interfaceAn entity NBT component builder.interfaceAComponentthat displays the client's current keybind for the supplied action.static interfaceA keybind component builder.interfaceNBTComponent<C extends NBTComponent<C>>A component that can display NBT fetched from different locations, optionally trying to interpret the NBT as JSON using thenet.kyori.adventure.text.serializer.gson.GsonComponentSerializerto convert the JSON to aComponent.interfaceNBTComponentBuilder<C extends NBTComponent<C>, B extends NBTComponentBuilder<C,B>> An NBT component builder.interfaceDisplays a non-text object.static interfaceAn object component builder.interfaceScopedComponent<C extends Component>Some magic to change return types.interfaceA component that can display a player's score from a scoreboard objective, with an optional fallback value if the search for the score fails.static interfaceA score component builder.interfaceA component that can display the name of entities found with a given selector.static interfaceA selector component builder.interfaceGiven aKey, this component reads the NBT of the associated command storage and displays that information.static interfaceA command storage NBT component builder.interfaceA component that displays a string.static interfaceA text component builder.interfaceA component that can display translated text.static interfaceA text component builder.interfaceAn argument that can be part of aTranslatableComponent.interfaceRepresents anything that can be represented as a non-ComponentTranslationArgument.interfaceA virtual component.Methods in net.kyori.adventure.text that return ComponentLikeModifier and TypeMethodDescription@UnknownNullability ComponentLikeGets the value by rendering usingcontext.Methods in net.kyori.adventure.text that return types with arguments of type ComponentLikeModifier and TypeMethodDescriptionJoinConfiguration.convertor()Gets the convertor of this join configuration.JoinConfiguration.predicate()Gets the predicate of this join configuration.Methods in net.kyori.adventure.text with parameters of type ComponentLikeModifier and TypeMethodDescriptiondefault ComponentComponent.append(ComponentLike like) Appends a component to this component.default ComponentComponent.append(ComponentLike... components) Appends components to this component.default BComponentBuilder.append(ComponentLike component) Appends a component to this component.ComponentBuilder.append(ComponentLike... components) Appends components to this component.default CScopedComponent.append(ComponentLike like) default CScopedComponent.append(ComponentLike... components) TranslatableComponent.arguments(ComponentLike... args) Sets the translation arguments for this component.TranslatableComponent.Builder.arguments(ComponentLike... args) Sets the translation args.static BlockNBTComponentComponent.blockNBT(String nbtPath, boolean interpret, @Nullable ComponentLike separator, BlockNBTComponent.Pos pos) Creates a block NBT component with a position.static TranslationArgumentTranslationArgument.component(ComponentLike value) Create a component argument.ObjectComponent.Builder.fallback(@Nullable ComponentLike fallback) Sets the fallback component of this object component builder.ObjectComponent.fallback(@Nullable ComponentLike fallback) Creates a copy of this object component with the given fallback.static ComponentComponent.join(JoinConfiguration.Builder configBuilder, ComponentLike... components) Joinscomponentsusing the configuration inconfigBuilder.static ComponentComponent.join(JoinConfiguration config, ComponentLike... components) Joinscomponentsusing the configuration inconfig.JoinConfiguration.Builder.lastSeparator(@Nullable ComponentLike lastSeparator) Sets the last separator of this join configuration builder.JoinConfiguration.Builder.lastSeparatorIfSerial(@Nullable ComponentLike lastSeparatorIfSerial) Sets the last separator that will be used instead of the normal last separator in the case where there are more than two components being joined.JoinConfiguration.Builder.prefix(@Nullable ComponentLike prefix) Sets the prefix of this join configuration builder.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.replacement(@Nullable ComponentLike replacement) Supply a literal replacement for the matched pattern.static SelectorComponentComponent.selector(String pattern, @Nullable ComponentLike separator) Creates a selector component with a pattern.JoinConfiguration.Builder.separator(@Nullable ComponentLike separator) Sets the separator of this join configuration builder.static JoinConfigurationJoinConfiguration.separator(@Nullable ComponentLike separator) Creates a join configuration with a separator and no prefix or suffix.NBTComponent.separator(@Nullable ComponentLike separator) Sets the separator.NBTComponentBuilder.separator(@Nullable ComponentLike separator) Sets the separator.SelectorComponent.Builder.separator(@Nullable ComponentLike separator) Sets the separator.SelectorComponent.separator(@Nullable ComponentLike separator) Sets the separator.static JoinConfigurationJoinConfiguration.separators(@Nullable ComponentLike separator, @Nullable ComponentLike lastSeparator) Creates a join configuration with a separator and last separator but no prefix or suffix.static StorageNBTComponentComponent.storageNBT(String nbtPath, boolean interpret, @Nullable ComponentLike separator, Key storage) Creates a storage NBT component with a path and an storage ID.JoinConfiguration.Builder.suffix(@Nullable ComponentLike suffix) Sets the suffix of this join configuration builder.static TextComponentComponent.textOfChildren(ComponentLike... components) Creates a text component withcomponentsas the children.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(String key, ComponentLike... args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(String key, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, ComponentLike... args) Creates a translatable component with a translation key, optional fallback string, and styling.static TranslatableComponentComponent.translatable(Translatable translatable, ComponentLike... args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, ComponentLike... args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, ComponentLike... args) Creates a translatable component with a translation key and styling.static @Nullable ComponentComponentLike.unbox(@Nullable ComponentLike like) Fetches aComponentfrom aComponentLike.Method parameters in net.kyori.adventure.text with type arguments of type ComponentLikeModifier and TypeMethodDescriptiondefault ComponentComponent.append(List<? extends ComponentLike> components) Appends a list of components to this component.ComponentBuilder.append(Iterable<? extends ComponentLike> components) Appends components to this component.default CScopedComponent.append(List<? extends ComponentLike> components) TranslatableComponent.arguments(List<? extends ComponentLike> args) Sets the translation arguments for this component.TranslatableComponent.Builder.arguments(List<? extends ComponentLike> args) Sets the translation args.ComponentLike.asComponents(List<? extends ComponentLike> likes) Converts a list ofComponentLikes to a list ofComponents.ComponentLike.asComponents(List<? extends ComponentLike> likes, @Nullable Predicate<? super Component> filter) Converts a list ofComponentLikes to a list ofComponents.Component.children(List<? extends ComponentLike> children) Sets the list of children.ScopedComponent.children(List<? extends ComponentLike> children) JoinConfiguration.Builder.convertor(Function<ComponentLike, Component> convertor) Sets the convertor of this join configuration builder.static ComponentComponent.join(JoinConfiguration.Builder configBuilder, Iterable<? extends ComponentLike> components) Joinscomponentsusing the configuration inconfigBuilder.static ComponentComponent.join(JoinConfiguration config, Iterable<? extends ComponentLike> components) Joinscomponentsusing the configuration inconfig.JoinConfiguration.Builder.predicate(Predicate<ComponentLike> predicate) Sets the predicate of this join configuration builder.TextReplacementConfig.Builder.replacement(BiFunction<MatchResult, TextComponent.Builder, @Nullable ComponentLike> replacement) Supply a function that provides replacements for each match, with access to group information.default TextReplacementConfig.BuilderTextReplacementConfig.Builder.replacement(Function<TextComponent.Builder, @Nullable ComponentLike> replacement) Supply a function that provides replacements for each match.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, List<? extends ComponentLike> args, Iterable<StyleBuilderApplicable> style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, List<? extends ComponentLike> args, StyleBuilderApplicable... style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(String key, List<? extends ComponentLike> args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(String key, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(String key, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, List<? extends ComponentLike> args, Iterable<StyleBuilderApplicable> style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, List<? extends ComponentLike> args, StyleBuilderApplicable... style) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable String fallback, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key, optional fallback string, and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, List<? extends ComponentLike> args) Creates a translatable component with a translation key and arguments.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color.static TranslatableComponentComponent.translatable(Translatable translatable, @Nullable TextColor color, Set<TextDecoration> decorations, List<? extends ComponentLike> args) Creates a translatable component with a translation key, arguments, and optional color and decorations.static TranslatableComponentComponent.translatable(Translatable translatable, Style style, List<? extends ComponentLike> args) Creates a translatable component with a translation key and styling. -
Uses of ComponentLike in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event with parameters of type ComponentLikeModifier and TypeMethodDescriptionstatic HoverEvent<Component> HoverEvent.showText(ComponentLike text) Creates a hover event that shows text on hover. -
Uses of ComponentLike in net.kyori.adventure.text.logger.slf4j
Methods in net.kyori.adventure.text.logger.slf4j with parameters of type ComponentLikeModifier and TypeMethodDescriptionvoidComponentLoggingEventBuilder.log(@Nullable ComponentLike message) Set the message and publish this logging event.voidComponentLoggingEventBuilder.log(@Nullable ComponentLike message, @Nullable Object arg) Set the message with one argument and publish this logging event.voidComponentLoggingEventBuilder.log(@Nullable ComponentLike message, @Nullable Object... args) Set the message with an array of arguments and publish this logging event.voidComponentLoggingEventBuilder.log(@Nullable ComponentLike message, @Nullable Object arg0, @Nullable Object arg1) Set the message with two arguments and publish this logging event.ComponentLoggingEventBuilder.setMessage(@Nullable ComponentLike message) Set the message to be logged for this event.Method parameters in net.kyori.adventure.text.logger.slf4j with type arguments of type ComponentLikeModifier and TypeMethodDescriptionvoidComponentLoggingEventBuilder.logComponent(Supplier<? extends @Nullable ComponentLike> messageSupplier) Set the message supplier and publish this logging event.ComponentLoggingEventBuilder.setComponentMessage(Supplier<? extends @Nullable ComponentLike> messageSupplier) Set the message supplier to be logged for this event. -
Uses of ComponentLike in net.kyori.adventure.text.minimessage.tag
Methods in net.kyori.adventure.text.minimessage.tag with parameters of type ComponentLikeModifier and TypeMethodDescriptionstatic TagTag.inserting(ComponentLike value) Create a tag that will insert a certain component into the output.static TagTag.selfClosingInserting(ComponentLike value) Create a tag that will insert a certain component into the output. -
Uses of ComponentLike in net.kyori.adventure.text.minimessage.tag.resolver
Methods in net.kyori.adventure.text.minimessage.tag.resolver with parameters of type ComponentLikeModifier and TypeMethodDescriptionstatic TagResolver.SinglePlaceholder.component(String key, ComponentLike value) Creates a replacement that inserts a component.static TagResolverFormatter.joining(String key, ComponentLike... components) Creates a replacement that inserts a list of components.Method parameters in net.kyori.adventure.text.minimessage.tag.resolver with type arguments of type ComponentLikeModifier and TypeMethodDescriptionstatic TagResolverFormatter.joining(String key, Iterable<? extends ComponentLike> components) Creates a replacement that inserts a list of components. -
Uses of ComponentLike in net.kyori.adventure.text.minimessage.translation
Methods in net.kyori.adventure.text.minimessage.translation that return ComponentLikeModifier and TypeMethodDescriptionstatic ComponentLikeArgument.argument(String name, TranslationArgument argument) Creates a named translation argument.static ComponentLikeArgument.argument(String name, TranslationArgumentLike argument) Creates a named translation argument.static ComponentLikeCreates a named boolean argument.static ComponentLikeArgument.component(String name, ComponentLike value) Creates a named component argument.static ComponentLikeCreates a named numeric argument.static ComponentLikeCreates a named string argument.static ComponentLikeCreates a named tag argument.static ComponentLikeArgument.tagResolver(Iterable<TagResolver> resolvers) Creates an argument used to add arbitrary tag resolvers to the deserialization process.static ComponentLikeArgument.tagResolver(TagResolver tagResolver) Creates an argument used to add arbitrary tag resolvers to the deserialization process.static ComponentLikeArgument.tagResolver(TagResolver... resolvers) Creates an argument used to add arbitrary tag resolvers to the deserialization process.static ComponentLikeCreates an argument used to set the target of the deserialization process.Methods in net.kyori.adventure.text.minimessage.translation with parameters of type ComponentLikeModifier and TypeMethodDescriptionstatic ComponentLikeArgument.component(String name, ComponentLike value) Creates a named component argument.