Uses of Interface
net.kyori.adventure.text.BlockNBTComponent
Packages that use BlockNBTComponent
Package
Description
Data for controlling components, their styles, and events.
Component rendering.
-
Uses of BlockNBTComponent in net.kyori.adventure.text
Subinterfaces with type arguments of type BlockNBTComponent 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 an in-game position, this component reads the NBT of the associated block and displays that information.static interfaceAn NBT component builder.Methods in net.kyori.adventure.text that return BlockNBTComponentModifier and TypeMethodDescriptiondefault BlockNBTComponentBlockNBTComponent.absoluteWorldPos(int x, int y, int z) Sets the block position to an absoluteBlockNBTComponent.WorldPoswith the given coordinates.static BlockNBTComponentComponent.blockNBT(String nbtPath, boolean interpret, @Nullable ComponentLike separator, BlockNBTComponent.Pos pos) Creates a block NBT component with a position.static BlockNBTComponentComponent.blockNBT(String nbtPath, boolean interpret, BlockNBTComponent.Pos pos) Creates a block NBT component with a position.static BlockNBTComponentComponent.blockNBT(String nbtPath, BlockNBTComponent.Pos pos) Creates a block NBT component with a position.static BlockNBTComponentComponent.blockNBT(Consumer<? super BlockNBTComponent.Builder> consumer) Creates a block NBT component by applying configuration fromconsumer.default BlockNBTComponentBlockNBTComponent.localPos(double left, double up, double forwards) Sets the block position to aBlockNBTComponent.LocalPoswith the given coordinates.BlockNBTComponent.pos(BlockNBTComponent.Pos pos) Sets the block position.default BlockNBTComponentBlockNBTComponent.relativeWorldPos(int x, int y, int z) Sets the block position to an relativeBlockNBTComponent.WorldPoswith the given coordinates.default BlockNBTComponentBlockNBTComponent.worldPos(BlockNBTComponent.WorldPos.Coordinate x, BlockNBTComponent.WorldPos.Coordinate y, BlockNBTComponent.WorldPos.Coordinate z) Sets the block position to aBlockNBTComponent.WorldPoswith the given coordinates. -
Uses of BlockNBTComponent in net.kyori.adventure.text.renderer
Methods in net.kyori.adventure.text.renderer with parameters of type BlockNBTComponentModifier and TypeMethodDescriptionprotected abstract ComponentAbstractComponentRenderer.renderBlockNbt(BlockNBTComponent component, C context) Renders a block NBT component.protected ComponentTranslatableComponentRenderer.renderBlockNbt(BlockNBTComponent component, C context)