Package net.kyori.adventure.text
Data for controlling components, their styles, and events.
-
Interface Summary Interface Description BlockNBTComponent Given an in-game position, this component reads the NBT of the associated block and displays that information.BlockNBTComponent.Builder An NBT component builder.BlockNBTComponent.LocalPos A local position.BlockNBTComponent.Pos A position.BlockNBTComponent.WorldPos A world position.BlockNBTComponent.WorldPos.Coordinate A coordinate component within aBlockNBTComponent.WorldPos
.BuildableComponent<C extends BuildableComponent<C,B>,B extends ComponentBuilder<C,B>> A component which may be built.Component A Component is an immutable object that represents how text is displayed Minecraft clients.ComponentApplicable Something that can be applied to aComponent
.ComponentBuilder<C extends BuildableComponent<C,B>,B extends ComponentBuilder<C,B>> A component builder.ComponentBuilderApplicable Something that can be applied to aComponentBuilder
.ComponentIteratorType The iterator types.ComponentLike Something that can be represented as aComponent
.EntityNBTComponent Given a Minecraft selector, this component reads the NBT of the associated entity and displays that information.EntityNBTComponent.Builder An entity NBT component builder.JoinConfiguration A configuration for how a series of components can be joined.JoinConfiguration.Builder A builder for join configurations.KeybindComponent AComponent
that displays the client's current keybind for the supplied action.KeybindComponent.Builder A keybind component builder.KeybindComponent.KeybindLike Something that can provide a keybind identifier.NBTComponent<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>> 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.GsonComponentSerializer
to convert the JSON to aComponent
.NBTComponentBuilder<C extends NBTComponent<C,B>,B extends NBTComponentBuilder<C,B>> An NBT component builder.ScopedComponent<C extends Component> Some magic to change return types.ScoreComponent A component that can display a player's score from a scoreboard objective, with an optional fallback value if the search for the score fails.ScoreComponent.Builder A score component builder.SelectorComponent A component that can display the name of entities found with a given selector.SelectorComponent.Builder A selector component builder.StorageNBTComponent Given aKey
, this component reads the NBT of the associated command storage and displays that information.StorageNBTComponent.Builder A command storage NBT component builder.TextComponent A component that displays a string.TextComponent.Builder A text component builder.TextReplacementConfig A configuration for how text can be replaced in a component.TextReplacementConfig.Builder A builder for replacement configurations.TextReplacementConfig.Condition A function determining whether a certain match should be replaced.TranslatableComponent A component that can display translated text.TranslatableComponent.Builder A text component builder. -
Class Summary Class Description AbstractComponent An abstract implementation of a text component.LinearComponents A utility class that allowscomponents
to be created wherestyles
can be specified inline. -
Enum Summary Enum Description BlockNBTComponent.WorldPos.Coordinate.Type The type of a coordinate.ComponentIteratorFlag Flags to modify the behaviour of a component iterator.PatternReplacementResult A result forComponent.replaceText(TextReplacementConfig)
pattern-based replacements}.