Uses of Interface
net.kyori.adventure.text.Component
Packages that use Component
Package
Description
A receiver of Minecraft media.
Boss bars.
Chat-related data.
Identity information used to track the sender of messages for the social interaction
features introduced in Minecraft: Java Edition 1.16.4.
Content that works on inventory items.
Data for controlling resource packs.
Serializers for Configurate 4.
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
Flatteners to convert component trees into linear strings.
A wrapper around SLF4J providing methods for formatted logging of Components.
MiniMessage, a friendly text format for representing chat components.
Serializer for the MiniMessage language.
Specification of the API for customizing tags understood by MiniMessage.
Tools for working with Adventure's translation API.
Component rendering.
Serialization and deserialization for components.
Serialization to ANSI escape sequences.
Gson based serialization and deserialization.
A common abstraction providing an API to serializer components with multiple JSON libraries.
Legacy text based serialization and deserialization.
Plain text based serialization and deserialization.
Data for controlling titles.
Translations and translation registries.
Miscellaneous utilities.
-
Uses of Component in net.kyori.adventure.audience
Methods in net.kyori.adventure.audience with parameters of type ComponentModifier and TypeMethodDescriptiondefault voidAudience.sendActionBar(Component message) Sends a message on the action bar.default voidForwardingAudience.sendActionBar(Component message) default voidForwardingAudience.Single.sendActionBar(Component message) default voidAudience.sendMessage(Component message) Sends a system chat message to thisAudience.default voidAudience.sendMessage(Component message, ChatType.Bound boundChatType) Sends a message to thisAudiencewith the providedbound chat type.default voidForwardingAudience.sendMessage(Component message) default voidForwardingAudience.sendMessage(Component message, ChatType.Bound boundChatType) default voidForwardingAudience.Single.sendMessage(Component message) default voidForwardingAudience.Single.sendMessage(Component message, ChatType.Bound boundChatType) default voidAudience.sendPlayerListFooter(Component footer) Sends the player list footer.default voidForwardingAudience.sendPlayerListFooter(Component footer) default voidForwardingAudience.Single.sendPlayerListFooter(Component footer) default voidAudience.sendPlayerListHeader(Component header) Sends the player list header.default voidForwardingAudience.sendPlayerListHeader(Component header) default voidForwardingAudience.Single.sendPlayerListHeader(Component header) default voidAudience.sendPlayerListHeaderAndFooter(Component header, Component footer) Sends the player list header and footer.default voidForwardingAudience.sendPlayerListHeaderAndFooter(Component header, Component footer) default voidForwardingAudience.Single.sendPlayerListHeaderAndFooter(Component header, Component footer) -
Uses of Component in net.kyori.adventure.bossbar
Methods in net.kyori.adventure.bossbar that return ComponentMethods in net.kyori.adventure.bossbar with parameters of type ComponentModifier and TypeMethodDescriptionstatic BossBarBossBar.bossBar(Component name, float progress, BossBar.Color color, BossBar.Overlay overlay) Creates a new bossbar.static BossBarBossBar.bossBar(Component name, float progress, BossBar.Color color, BossBar.Overlay overlay, Set<BossBar.Flag> flags) Creates a new bossbar.default voidBossBar.Listener.bossBarNameChanged(BossBar bar, Component oldName, Component newName) Bossbar name changed.Sets the name. -
Uses of Component in net.kyori.adventure.chat
Methods in net.kyori.adventure.chat that return Component -
Uses of Component in net.kyori.adventure.identity
Fields in net.kyori.adventure.identity with type parameters of type Component -
Uses of Component in net.kyori.adventure.inventory
Methods in net.kyori.adventure.inventory that return ComponentMethods in net.kyori.adventure.inventory that return types with arguments of type ComponentMethods in net.kyori.adventure.inventory with parameters of type ComponentModifier and TypeMethodDescriptionAdd a page to the book.Changes the book's author.Set the author.static BookCreates a book with title and author set toComponent.empty().static BookBook.book(Component title, Component author, Collection<Component> pages) Creates a book.static BookCreates a book.Add pages to the book.default BookReturns an updated book with the provided pages.Set the title.Changes the book's title.Method parameters in net.kyori.adventure.inventory with type arguments of type ComponentModifier and TypeMethodDescriptionstatic BookBook.book(Collection<Component> pages) Creates a book with title and author set toComponent.empty().static BookBook.book(Component title, Component author, Collection<Component> pages) Creates a book.Book.Builder.pages(Collection<Component> pages) Add pages to the book.Returns an updated book with the provided pages. -
Uses of Component in net.kyori.adventure.resource
Methods in net.kyori.adventure.resource that return ComponentModifier and TypeMethodDescription@Nullable ComponentResourcePackRequest.prompt()Gets the prompt that will be provided when requesting these packs.Methods in net.kyori.adventure.resource with parameters of type ComponentModifier and TypeMethodDescriptionSets the prompt. -
Uses of Component in net.kyori.adventure.serializer.configurate4
Subinterfaces with type arguments of type Component in net.kyori.adventure.serializer.configurate4Modifier and TypeInterfaceDescriptioninterfaceA serializer that will output to ConfigurateConfigurationNodes.interfaceA serializer that will output to ConfigurateConfigurationNodes.Method parameters in net.kyori.adventure.serializer.configurate4 with type arguments of type ComponentModifier and TypeMethodDescriptionConfigurateComponentSerializer.Builder.scalarSerializer(ComponentSerializer<Component, ?, String> stringSerializer) Set the serializer to use when reading Components. -
Uses of Component in net.kyori.adventure.text
Classes in net.kyori.adventure.text with type parameters of type ComponentModifier and TypeInterfaceDescriptioninterfaceComponentBuilder<C extends Component, B extends ComponentBuilder<C,B>> A component builder.interfaceScopedComponent<C extends Component>Some magic to change return types.Subinterfaces of Component in net.kyori.adventure.textModifier and TypeInterfaceDescriptioninterfaceGiven an in-game position, this component reads the NBT of the associated block and displays that information.interfaceGiven a Minecraft selector, this component reads the NBT of the associated entity and displays that information.interfaceAComponentthat displays the client's current keybind for the supplied action.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.interfaceDisplays a non-text object.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.interfaceA component that can display the name of entities found with a given selector.interfaceGiven aKey, this component reads the NBT of the associated command storage and displays that information.interfaceA component that displays a string.interfaceA component that can display translated text.interfaceA virtual component.Subinterfaces with type arguments of type Component in net.kyori.adventure.textModifier and TypeInterfaceDescriptioninterfaceA Component is an immutable object that represents how text is displayed Minecraft clients.interfaceA Component is an immutable object that represents how text is displayed Minecraft clients.Fields in net.kyori.adventure.text with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final BiPredicate<? super Component, ? super Component> Component.EQUALSA predicate that checks equality of twoComponents usingObjects.equals(Object, Object).static final BiPredicate<? super Component, ? super Component> Component.EQUALSA predicate that checks equality of twoComponents usingObjects.equals(Object, Object).static final BiPredicate<? super Component, ? super Component> Component.EQUALS_IDENTITYA predicate that checks equality of twoComponents using identity equality.static final BiPredicate<? super Component, ? super Component> Component.EQUALS_IDENTITYA predicate that checks equality of twoComponents using identity equality.Component.IS_NOT_EMPTYA predicate that excludesComponent.empty().Methods in net.kyori.adventure.text that return ComponentModifier and TypeMethodDescriptiondefault ComponentComponent.append(List<? extends ComponentLike> components) Appends a list of components to this component.default ComponentAppends a component to this component.default ComponentComponent.append(ComponentBuilder<?, ?> builder) Appends a component to this component.default ComponentComponent.append(ComponentLike like) Appends a component to this component.default ComponentComponent.append(ComponentLike... components) Appends components to this component.default ComponentComponent.appendNewline()Appends a newline to this component.default ComponentComponent.appendSpace()Appends a space to this component.default ComponentComponent.applyFallbackStyle(Style style) Apply a fallback style for this component and its children.default ComponentComponent.applyFallbackStyle(StyleBuilderApplicable... style) Apply a fallback style for this component and its children.default ComponentComponent.asComponent()default ComponentComponentBuilder.asComponent()ComponentLike.asComponent()Gets aComponentrepresentation.default ComponentTranslationArgumentLike.asComponent()Component.children(List<? extends ComponentLike> children) Sets the list of children.default ComponentComponent.clickEvent(@Nullable ClickEvent<?> event) Sets the click event of this component.default ComponentSets the color of this component.default ComponentComponent.colorIfAbsent(@Nullable TextColor color) Sets the color if there isn't one set already.default ComponentComponent.compact()Create a new component with any redundant style elements or children removed.default ComponentCreate a new component with any redundant style elements or children removed.ComponentApplicable.componentApply(Component component) Applies tocomponent.default ComponentComponent.decorate(TextDecoration decoration) Sets the state ofdecorationtoTextDecoration.State.TRUEon this component.default ComponentComponent.decoration(TextDecoration decoration, boolean flag) Sets the state of a decoration on this component.default ComponentComponent.decoration(TextDecoration decoration, TextDecoration.State state) Sets the value of a decoration on this component.default ComponentComponent.decorationIfAbsent(TextDecoration decoration, TextDecoration.State state) Sets the state of a decoration on this component tostateif the current state of the decoration isTextDecoration.State.NOT_SET.default ComponentComponent.decorations(Map<TextDecoration, TextDecoration.State> decorations) Sets decorations for this component's style using the specifieddecorationsmap.@Nullable ComponentObjectComponent.fallback()Gets the fallback component.default ComponentSets the font.default ComponentComponent.hoverEvent(@Nullable HoverEventSource<?> source) Sets the hover event of this component.default ComponentSets the string to be inserted when this component is shift-clicked.static ComponentComponent.join(JoinConfiguration.Builder configBuilder, Iterable<? extends ComponentLike> components) Joinscomponentsusing the configuration inconfigBuilder.static ComponentComponent.join(JoinConfiguration.Builder configBuilder, ComponentLike... components) Joinscomponentsusing the configuration inconfigBuilder.static ComponentComponent.join(JoinConfiguration config, Iterable<? extends ComponentLike> components) Joinscomponentsusing the configuration inconfig.static ComponentComponent.join(JoinConfiguration config, ComponentLike... components) Joinscomponentsusing the configuration inconfig.@Nullable ComponentJoinConfiguration.lastSeparator()Gets the last separator of this join configuration.@Nullable ComponentJoinConfiguration.lastSeparatorIfSerial()Gets 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.static ComponentLinearComponents.linear(ComponentBuilderApplicable... applicables) Styles apply to all components after them until a conflicting style is discovereddefault ComponentComponent.mergeStyle(Component that) Merges from another style into this component's style.default ComponentComponent.mergeStyle(Component that, Set<Style.Merge> merges) Merges from another style into this component's style.default ComponentComponent.mergeStyle(Component that, Style.Merge... merges) Merges from another style into this component's style.@Nullable ComponentJoinConfiguration.prefix()Gets the prefix of this join configuration.default ComponentComponent.replaceText(Consumer<TextReplacementConfig.Builder> configurer) Finds and replaces any text with this or childComponents using the configured options.default ComponentComponent.replaceText(TextReplacementConfig config) Finds and replaces any text with this or childComponents using the provided options.@Nullable ComponentJoinConfiguration.separator()Gets the separator of this join configuration.@Nullable ComponentNBTComponent.separator()Gets the separator.@Nullable ComponentSelectorComponent.separator()Gets the separator.default ComponentComponent.shadowColor(@Nullable ARGBLike argb) Sets the shadow color of this component.default ComponentComponent.shadowColorIfAbsent(@Nullable ARGBLike argb) Sets the shadow color if there isn't one set already.default ComponentComponent.style(Consumer<Style.Builder> consumer) Sets the style of this component.default ComponentComponent.style(Consumer<Style.Builder> consumer, Style.Merge.Strategy strategy) Sets the style of this component.Sets the style of this component.default ComponentComponent.style(Style.Builder style) Sets the style of this component.@Nullable ComponentJoinConfiguration.suffix()Gets the suffix of this join configuration.static @Nullable ComponentComponentLike.unbox(@Nullable ComponentLike like) Fetches aComponentfrom aComponentLike.Methods in net.kyori.adventure.text that return types with arguments of type ComponentModifier and TypeMethodDescriptionComponentLike.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.default HoverEvent<Component> Component.asHoverEvent(UnaryOperator<Component> op) Component.children()Gets the unmodifiable list of children.ComponentBuilder.children()Get an unmodifiable list containing all children currently in this builder.JoinConfiguration.convertor()Gets the convertor of this join configuration.Component.iterable(ComponentIteratorType type, Set<ComponentIteratorFlag> flags) Returns an iterable view of this component.Component.iterable(ComponentIteratorType type, ComponentIteratorFlag @Nullable ... flags) Returns an iterable view of this component.Component.iterator(ComponentIteratorType type, Set<ComponentIteratorFlag> flags) Returns an iterator for this component.Component.iterator(ComponentIteratorType type, ComponentIteratorFlag @Nullable ... flags) Returns an iterator for this component.default Spliterator<Component> Component.spliterator(ComponentIteratorType type, Set<ComponentIteratorFlag> flags) Returns a spliterator for this component.default Spliterator<Component> Component.spliterator(ComponentIteratorType type, ComponentIteratorFlag @Nullable ... flags) Returns a spliterator for this component.static Collector<Component, ? extends ComponentBuilder<?, ?>, Component> Component.toComponent()Create a collector that will join components without a separator.static Collector<Component, ? extends ComponentBuilder<?, ?>, Component> Component.toComponent()Create a collector that will join components without a separator.static Collector<Component, ? extends ComponentBuilder<?, ?>, Component> Component.toComponent(Component separator) Create a collector that will join components using the provided separator.static Collector<Component, ? extends ComponentBuilder<?, ?>, Component> Component.toComponent(Component separator) Create a collector that will join components using the provided separator.Methods in net.kyori.adventure.text with parameters of type ComponentModifier and TypeMethodDescriptiondefault ComponentAppends a component to this component.Appends a component to this component.Appends components to this component.default CComponentApplicable.componentApply(Component component) Applies tocomponent.default booleanChecks if this component contains a component.default booleanComponent.contains(Component that, BiPredicate<? super Component, ? super Component> equals) Checks if this component contains a component.default ComponentComponent.mergeStyle(Component that) Merges from another style into this component's style.default ComponentComponent.mergeStyle(Component that, Set<Style.Merge> merges) Merges from another style into this component's style.default ComponentComponent.mergeStyle(Component that, Style.Merge... merges) Merges from another style into this component's style.default BComponentBuilder.mergeStyle(Component that) Merges styling from another component into this component.ComponentBuilder.mergeStyle(Component that, Set<Style.Merge> merges) Merges styling from another component into this component.default BComponentBuilder.mergeStyle(Component that, Style.Merge... merges) Merges styling from another component into this component.default CScopedComponent.mergeStyle(Component that) default CScopedComponent.mergeStyle(Component that, Set<Style.Merge> merges) default CScopedComponent.mergeStyle(Component that, Style.Merge... merges) voidComponentIteratorType.populate(Component component, Deque<Component> deque, Set<ComponentIteratorFlag> flags) Populates a deque with the children of the provided component, based on the iterator type and flags.static Collector<Component, ? extends ComponentBuilder<?, ?>, Component> Component.toComponent(Component separator) Create a collector that will join components using the provided separator.Method parameters in net.kyori.adventure.text with type arguments of type ComponentModifier and TypeMethodDescriptionComponentLike.asComponents(List<? extends ComponentLike> likes, @Nullable Predicate<? super Component> filter) Converts a list ofComponentLikes to a list ofComponents.default HoverEvent<Component> Component.asHoverEvent(UnaryOperator<Component> op) default booleanComponent.contains(Component that, BiPredicate<? super Component, ? super Component> equals) Checks if this component contains a component.default booleanComponent.contains(Component that, BiPredicate<? super Component, ? super Component> equals) Checks if this component contains a component.JoinConfiguration.Builder.convertor(Function<ComponentLike, Component> convertor) Sets the convertor of this join configuration builder.ComponentBuilder.mapChildren(Function<Component, ? extends Component> function) Replaces each child of this component with the resultant component from the function.ComponentBuilder.mapChildren(Function<Component, ? extends Component> function) Replaces each child of this component with the resultant component from the function.ComponentBuilder.mapChildrenDeep(Function<Component, ? extends Component> function) Replaces each child and sub-child of this component with the resultant component of the function.ComponentBuilder.mapChildrenDeep(Function<Component, ? extends Component> function) Replaces each child and sub-child of this component with the resultant component of the function.voidComponentIteratorType.populate(Component component, Deque<Component> deque, Set<ComponentIteratorFlag> flags) Populates a deque with the children of the provided component, based on the iterator type and flags. -
Uses of Component in net.kyori.adventure.text.event
Fields in net.kyori.adventure.text.event with type parameters of type ComponentModifier and TypeFieldDescriptionstatic final HoverEvent.Action<Component> HoverEvent.Action.SHOW_TEXTShows aComponentwhen hovered over.Methods in net.kyori.adventure.text.event that return ComponentModifier and TypeMethodDescription@Nullable ComponentHoverEvent.ShowEntity.name()Gets the name.Methods in net.kyori.adventure.text.event that return types with arguments of type ComponentModifier and TypeMethodDescriptionstatic HoverEvent<Component> Creates a hover event that shows text on hover.static HoverEvent<Component> HoverEvent.showText(ComponentLike text) Creates a hover event that shows text on hover.Methods in net.kyori.adventure.text.event with parameters of type ComponentModifier and TypeMethodDescriptionSets the name.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Keyed type, UUID id, @Nullable Component name) Creates a hover event that show information about an entity on hover.static HoverEvent<HoverEvent.ShowEntity> HoverEvent.showEntity(Key type, UUID id, @Nullable Component name) Creates a hover event that show information about an entity on hover.static HoverEvent.ShowEntityHoverEvent.ShowEntity.showEntity(Keyed type, UUID id, @Nullable Component name) Creates.static HoverEvent.ShowEntityHoverEvent.ShowEntity.showEntity(Key type, UUID id, @Nullable Component name) Creates.static HoverEvent<Component> Creates a hover event that shows text on hover. -
Uses of Component in net.kyori.adventure.text.flattener
Methods in net.kyori.adventure.text.flattener with type parameters of type ComponentModifier and TypeMethodDescription<T extends Component>
ComponentFlattener.BuilderComponentFlattener.Builder.complexMapper(Class<T> type, BiConsumer<T, Consumer<Component>> converter) Register a type of component that needs to be flattened to an intermediate stage.<T extends Component>
ComponentFlattener.BuilderRegister a type of component to be handled.Methods in net.kyori.adventure.text.flattener with parameters of type ComponentModifier and TypeMethodDescriptionvoidComponentFlattener.flatten(Component input, FlattenerListener listener) Perform a flattening on the component, providing output to thelistener.Method parameters in net.kyori.adventure.text.flattener with type arguments of type ComponentModifier and TypeMethodDescription<T extends Component>
ComponentFlattener.BuilderComponentFlattener.Builder.complexMapper(Class<T> type, BiConsumer<T, Consumer<Component>> converter) Register a type of component that needs to be flattened to an intermediate stage.ComponentFlattener.Builder.unknownMapper(@Nullable Function<Component, String> converter) Register a handler for unknown component types. -
Uses of Component in net.kyori.adventure.text.logger.slf4j
Methods in net.kyori.adventure.text.logger.slf4j that return types with arguments of type ComponentModifier and TypeMethodDescriptionComponentLoggerProvider.LoggerHelper.plainSerializer()Create a serializer function that will translate logged output into the system default locale and then serialize it to plain text.Methods in net.kyori.adventure.text.logger.slf4j with parameters of type ComponentModifier and TypeMethodDescriptionvoidLog a message at the DEBUG level.voidLog a message at the DEBUG level according to the specified format and argument.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog a message at the DEBUG level according to the specified format and arguments.voidLog an exception (throwable) at the DEBUG level with an accompanying message.voidLog a message with the specific Marker at the DEBUG level.voidThis method is similar toComponentLogger.debug(Component, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.debug(Component, Object...)method except that the marker data is also taken into consideration.voidComponentLogger.debug(org.slf4j.Marker marker, Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toComponentLogger.debug(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.debug(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the ERROR level.voidLog a message at the ERROR level according to the specified format and argument.voidLog a message at the ERROR level according to the specified format and arguments.voidLog a message at the ERROR level according to the specified format and arguments.voidLog an exception (throwable) at the ERROR level with an accompanying message.voidLog a message with the specific final Marker at the ERROR level.voidThis method is similar toComponentLogger.error(Component, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.error(Component, Object...)method except that the marker data is also taken into consideration.voidComponentLogger.error(org.slf4j.Marker marker, Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toComponentLogger.error(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.error(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the INFO level.voidLog a message at the INFO level according to the specified format and argument.voidLog a message at the INFO level according to the specified format and arguments.voidLog a message at the INFO level according to the specified format and arguments.voidLog an exception (throwable) at the INFO level with an accompanying message.voidLog a message with the specific Marker at the INFO level.voidThis method is similar toComponentLogger.info(Component, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.info(Component, Object...)method except that the marker data is also taken into consideration.voidComponentLogger.info(org.slf4j.Marker marker, Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toComponentLogger.info(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.info(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the TRACE level.voidLog a message at the TRACE level according to the specified format and argument.voidLog a message at the TRACE level according to the specified format and arguments.voidLog a message at the TRACE level according to the specified format and arguments.voidLog an exception (throwable) at the TRACE level with an accompanying message.voidLog a message with the specific Marker at the TRACE level.voidThis method is similar toComponentLogger.trace(Component, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.trace(Component, Object...)method except that the marker data is also taken into consideration.voidComponentLogger.trace(org.slf4j.Marker marker, Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toComponentLogger.trace(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.trace(Component, Throwable)method except that the marker data is also taken into consideration.voidLog a message at the WARN level.voidLog a message at the WARN level according to the specified format and argument.voidLog a message at the WARN level according to the specified format and arguments.voidLog a message at the WARN level according to the specified format and arguments.voidLog an exception (throwable) at the WARN level with an accompanying message.voidLog a message with the specific final Marker at the WARN level.voidThis method is similar toComponentLogger.warn(Component, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.warn(Component, Object...)method except that the marker data is also taken into consideration.voidComponentLogger.warn(org.slf4j.Marker marker, Component format, @Nullable Object arg1, @Nullable Object arg2) This method is similar toComponentLogger.warn(Component, Object, Object)method except that the marker data is also taken into consideration.voidThis method is similar toComponentLogger.warn(Component, Throwable)method except that the marker data is also taken into consideration.Method parameters in net.kyori.adventure.text.logger.slf4j with type arguments of type ComponentModifier and TypeMethodDescriptionComponentLoggerProvider.LoggerHelper.delegating(org.slf4j.Logger base, Function<Component, String> serializer) Create a component logger based on one which delegates to an underlying plainLoggerimplementation. -
Uses of Component in net.kyori.adventure.text.minimessage
Subinterfaces with type arguments of type Component in net.kyori.adventure.text.minimessageModifier and TypeInterfaceDescriptioninterfaceMiniMessage is a textual representation of components.interfaceMiniMessage is a textual representation of components.Methods in net.kyori.adventure.text.minimessage that return ComponentModifier and TypeMethodDescriptionContext.deserialize(String message) Deserializes a MiniMessage string using all the settings of this context.Context.deserialize(String message, TagResolver resolver) Deserializes a MiniMessage string using all the settings of this context.Context.deserialize(String message, TagResolver... resolvers) Deserializes a MiniMessage string using all the settings of this context.MiniMessage.deserialize(String input, Pointered target) Deserializes a string into a component, with a target.MiniMessage.deserialize(String input, Pointered target, TagResolver tagResolver) Deserializes a string into a component, with a tag resolver to parse tags of the form<key>and a target.default ComponentMiniMessage.deserialize(String input, Pointered target, TagResolver... tagResolvers) Deserializes a string into a component, with tag resolvers to parse tags of the form<key>and a target.MiniMessage.deserialize(String input, TagResolver tagResolver) Deserializes a string into a component, with a tag resolver to parse tags of the form<key>.default ComponentMiniMessage.deserialize(String input, TagResolver... tagResolvers) Deserializes a string into a component, with tag resolvers to parse tags of the form<key>.Method parameters in net.kyori.adventure.text.minimessage with type arguments of type ComponentModifier and TypeMethodDescriptionMiniMessage.Builder.postProcessor(UnaryOperator<Component> postProcessor) Specify a function that takes the component at the end of the parser process. -
Uses of Component in net.kyori.adventure.text.minimessage.internal.serializer
Methods in net.kyori.adventure.text.minimessage.internal.serializer that return ComponentModifier and TypeMethodDescriptiondefault @Nullable ComponentEmitable.substitute()Provide a substitute for this component's actual children.Methods in net.kyori.adventure.text.minimessage.internal.serializer with parameters of type ComponentModifier and TypeMethodDescriptionAdd a single argument to the current tag.default @Nullable EmitableSerializableResolver.Single.claimComponent(Component component) Claim a full component for tag emission.voidSerializableResolver.handle(Component serializable, ClaimConsumer consumer) Attempt to process a component for serialization.default voidSerializableResolver.Single.handle(Component serializable, ClaimConsumer consumer) Method parameters in net.kyori.adventure.text.minimessage.internal.serializer with type arguments of type ComponentModifier and TypeMethodDescriptionstatic TagResolverSerializableResolver.claimingComponent(String name, BiFunction<ArgumentQueue, Context, Tag> handler, Function<Component, @Nullable Emitable> componentClaim) Create a tag resolver that only responds to a single tag name, and whose value does not depend on that name.static TagResolverSerializableResolver.claimingComponent(Set<String> names, BiFunction<ArgumentQueue, Context, Tag> handler, Function<Component, @Nullable Emitable> componentClaim) Create a tag resolver that only responds to certain tag names, and whose value does not depend on that name. -
Uses of Component in net.kyori.adventure.text.minimessage.tag
Methods in net.kyori.adventure.text.minimessage.tag that return ComponentModifier and TypeMethodDescriptionApplies this transformation for the current component.Inserting.value()Returns the component this tag produces.Methods in net.kyori.adventure.text.minimessage.tag with parameters of type ComponentModifier and TypeMethodDescriptionApplies this transformation for the current component.static TagCreate a tag that will insert a certain component into the output.static TagTag.selfClosingInserting(Component content) Create a tag that will insert a certain component into the output. -
Uses of Component in net.kyori.adventure.text.minimessage.translation
Methods in net.kyori.adventure.text.minimessage.translation that return ComponentModifier and TypeMethodDescriptionfinal @Nullable ComponentMiniMessageTranslator.translate(TranslatableComponent component, Locale locale) -
Uses of Component in net.kyori.adventure.text.renderer
Methods in net.kyori.adventure.text.renderer with type parameters of type ComponentModifier and TypeMethodDescriptionprotected <O extends Component, B extends ComponentBuilder<O,B>>
OTranslatableComponentRenderer.mergeStyleAndOptionallyDeepRender(Component component, B builder, C context) protected <O extends Component, B extends ComponentBuilder<O,B>>
OTranslatableComponentRenderer.optionallyRenderChildrenAppendAndBuild(List<Component> children, B builder, C context) Methods in net.kyori.adventure.text.renderer that return ComponentModifier and TypeMethodDescriptionprotected ComponentTranslatableComponentRenderer.optionallyRenderChildrenAndStyle(Component component, C context) Renders a component.protected final ComponentRenders a component.Renders a component.protected abstract ComponentAbstractComponentRenderer.renderBlockNbt(BlockNBTComponent component, C context) Renders a block NBT component.protected ComponentTranslatableComponentRenderer.renderBlockNbt(BlockNBTComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderEntityNbt(EntityNBTComponent component, C context) Renders an entity NBT component.protected ComponentTranslatableComponentRenderer.renderEntityNbt(EntityNBTComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderKeybind(KeybindComponent component, C context) Renders a keybind component.protected ComponentTranslatableComponentRenderer.renderKeybind(KeybindComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderObject(ObjectComponent component, C context) Renders an object component.protected ComponentTranslatableComponentRenderer.renderObject(ObjectComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderScore(ScoreComponent component, C context) Renders a score component.protected ComponentTranslatableComponentRenderer.renderScore(ScoreComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderSelector(SelectorComponent component, C context) Renders a selector component.protected ComponentTranslatableComponentRenderer.renderSelector(SelectorComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderStorageNbt(StorageNBTComponent component, C context) Renders a storage NBT component.protected ComponentTranslatableComponentRenderer.renderStorageNbt(StorageNBTComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderText(TextComponent component, C context) Renders a text component.protected ComponentTranslatableComponentRenderer.renderText(TextComponent component, C context) protected abstract ComponentAbstractComponentRenderer.renderTranslatable(TranslatableComponent component, C context) Renders a translatable component.protected ComponentTranslatableComponentRenderer.renderTranslatable(TranslatableComponent component, C context) protected ComponentTranslatableComponentRenderer.renderTranslatableInner(TranslatableComponent component, C context) protected ComponentAbstractComponentRenderer.renderVirtual(VirtualComponent component, C context) Renders a virtual component.Methods in net.kyori.adventure.text.renderer with parameters of type ComponentModifier and TypeMethodDescriptionprotected <B extends ComponentBuilder<?,?>>
voidTranslatableComponentRenderer.mergeStyle(Component component, B builder, C context) protected <O extends Component, B extends ComponentBuilder<O,B>>
OTranslatableComponentRenderer.mergeStyleAndOptionallyDeepRender(Component component, B builder, C context) protected ComponentTranslatableComponentRenderer.optionallyRenderChildrenAndStyle(Component component, C context) Renders a component.protected final ComponentRenders a component.Renders a component.Method parameters in net.kyori.adventure.text.renderer with type arguments of type ComponentModifier and TypeMethodDescriptionprotected <O extends Component, B extends ComponentBuilder<O,B>>
OTranslatableComponentRenderer.optionallyRenderChildrenAppendAndBuild(List<Component> children, B builder, C context) -
Uses of Component in net.kyori.adventure.text.serializer
Classes in net.kyori.adventure.text.serializer with type parameters of type ComponentModifier and TypeInterfaceDescriptioninterfaceComponentDecoder<S, O extends Component>AComponentdecoder, which provides deserialization, but without serialization.interfaceComponentEncoder<I extends Component, R>AComponentencoder, which provides serialization, but without deserialization.interfaceComponentSerializer<I extends Component, O extends Component, R>AComponentserializer and deserializer.interfaceComponentSerializer<I extends Component, O extends Component, R>AComponentserializer and deserializer. -
Uses of Component in net.kyori.adventure.text.serializer.ansi
Subinterfaces with type arguments of type Component in net.kyori.adventure.text.serializer.ansi -
Uses of Component in net.kyori.adventure.text.serializer.gson
Methods in net.kyori.adventure.text.serializer.gson that return ComponentModifier and TypeMethodDescriptionGsonComponentSerializer.deserializeFromTree(com.google.gson.JsonElement input) Deserialize a component from input of typeJsonElement.Methods in net.kyori.adventure.text.serializer.gson with parameters of type ComponentModifier and TypeMethodDescriptioncom.google.gson.JsonElementGsonComponentSerializer.serializeToTree(Component component) Deserialize a component to output of typeJsonElement. -
Uses of Component in net.kyori.adventure.text.serializer.json
Subinterfaces with type arguments of type Component in net.kyori.adventure.text.serializer.jsonModifier and TypeInterfaceDescriptioninterfaceA JSON component serializer.interfaceA JSON component serializer.Methods in net.kyori.adventure.text.serializer.json that return ComponentModifier and TypeMethodDescriptionLegacyHoverEventSerializer.serializeShowEntity(HoverEvent.ShowEntity input, Codec.Encoder<Component, String, ? extends RuntimeException> componentEncoder) Convert a modern hover eventshow_entityvalue to its legacy format.LegacyHoverEventSerializer.serializeShowItem(HoverEvent.ShowItem input) Convert a modern hover eventshow_itemvalue to its legacy format.Methods in net.kyori.adventure.text.serializer.json with parameters of type ComponentModifier and TypeMethodDescriptionLegacyHoverEventSerializer.deserializeShowEntity(Component input, Codec.Decoder<Component, String, ? extends RuntimeException> componentDecoder) Convert a legacy hover eventshow_entityvalue to its modern format.LegacyHoverEventSerializer.deserializeShowItem(Component input) Convert a legacy hover eventshow_itemvalue to its modern format.Method parameters in net.kyori.adventure.text.serializer.json with type arguments of type ComponentModifier and TypeMethodDescriptionLegacyHoverEventSerializer.deserializeShowEntity(Component input, Codec.Decoder<Component, String, ? extends RuntimeException> componentDecoder) Convert a legacy hover eventshow_entityvalue to its modern format.LegacyHoverEventSerializer.serializeShowEntity(HoverEvent.ShowEntity input, Codec.Encoder<Component, String, ? extends RuntimeException> componentEncoder) Convert a modern hover eventshow_entityvalue to its legacy format. -
Uses of Component in net.kyori.adventure.text.serializer.legacy
Subinterfaces with type arguments of type Component in net.kyori.adventure.text.serializer.legacyModifier and TypeInterfaceDescriptioninterfaceA legacy component serializer.Methods in net.kyori.adventure.text.serializer.legacy with parameters of type Component -
Uses of Component in net.kyori.adventure.text.serializer.plain
Subinterfaces with type arguments of type Component in net.kyori.adventure.text.serializer.plainModifier and TypeInterfaceDescriptioninterfaceA plain-text component serializer.Methods in net.kyori.adventure.text.serializer.plain with parameters of type Component -
Uses of Component in net.kyori.adventure.title
Fields in net.kyori.adventure.title with type parameters of type ComponentModifier and TypeFieldDescriptionTitlePart.SUBTITLEThe subtitle part of a title.TitlePart.TITLEThe title part of a title.Methods in net.kyori.adventure.title that return ComponentModifier and TypeMethodDescriptionTitle.subtitle()Gets the subtitle.Title.title()Gets the title.Methods in net.kyori.adventure.title with parameters of type Component -
Uses of Component in net.kyori.adventure.translation
Methods in net.kyori.adventure.translation that return ComponentModifier and TypeMethodDescriptionstatic ComponentRenders a component using theglobal renderer.default @Nullable ComponentTranslator.translate(TranslatableComponent component, Locale locale) Gets a translated component from a translatable component and locale.Methods in net.kyori.adventure.translation that return types with arguments of type ComponentModifier and TypeMethodDescriptionstatic TranslationStore<Component> Creates a new translation store that uses component-based translation.Methods in net.kyori.adventure.translation with parameters of type ComponentModifier and TypeMethodDescriptionstatic ComponentRenders a component using theglobal renderer. -
Uses of Component in net.kyori.adventure.util
Methods in net.kyori.adventure.util that return ComponentModifier and TypeMethodDescription@Nullable ComponentComponentMessageThrowable.componentMessage()Gets the message.static @Nullable ComponentComponentMessageThrowable.getMessage(@Nullable Throwable throwable) static @Nullable ComponentComponentMessageThrowable.getOrConvertMessage(@Nullable Throwable throwable)