Package net.kyori.adventure.text
Interface EntityNBTComponent
- All Superinterfaces:
- Buildable<EntityNBTComponent,,- EntityNBTComponent.Builder> - BuildableComponent<EntityNBTComponent,,- EntityNBTComponent.Builder> - Component,- ComponentBuilderApplicable,- ComponentLike,- net.kyori.examination.Examinable,- HoverEventSource<Component>,- NBTComponent<EntityNBTComponent,,- EntityNBTComponent.Builder> - ScopedComponent<EntityNBTComponent>,- StyleGetter,- StyleSetter<Component>
public interface EntityNBTComponent
extends NBTComponent<EntityNBTComponent,EntityNBTComponent.Builder>, ScopedComponent<EntityNBTComponent> 
Given a Minecraft selector, this component reads the NBT of the associated entity and displays that information.
 
This component consists of:
- selector
- a Minecraft selector.(e.g @p,@r)
- everything in
- NBTComponent
- Since:
- 4.0.0
- See Also:
- Since Minecraft:
- 1.14
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn entity NBT component builder.
- 
Field SummaryFields inherited from interface net.kyori.adventure.text.ComponentEQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY
- 
Method SummaryModifier and TypeMethodDescriptiondefault @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>@NotNull Stringselector()Gets the entity selector.@NotNull EntityNBTComponentSets the entity selector.Methods inherited from interface net.kyori.adventure.text.BuildableComponenttoBuilderMethods inherited from interface net.kyori.adventure.text.ComponentasHoverEvent, children, clickEvent, color, compact, compact, componentBuilderApply, contains, contains, decoration, decorations, detectCycle, font, hasDecoration, hasStyling, hoverEvent, insertion, iterable, iterable, iterator, iterator, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, shadowColor, spliterator, spliterator, styleMethods inherited from interface net.kyori.examination.ExaminableexaminableName, examineMethods inherited from interface net.kyori.adventure.text.event.HoverEventSourceasHoverEventMethods inherited from interface net.kyori.adventure.text.NBTComponentinterpret, interpret, nbtPath, nbtPath, separator, separatorMethods inherited from interface net.kyori.adventure.text.ScopedComponentappend, append, append, append, append, appendNewline, appendSpace, applyFallbackStyle, applyFallbackStyle, asComponent, children, clickEvent, color, colorIfAbsent, decorate, decoration, decoration, decorationIfAbsent, decorations, font, hoverEvent, insertion, mergeStyle, mergeStyle, mergeStyle, shadowColor, shadowColorIfAbsent, style, style, style, styleMethods inherited from interface net.kyori.adventure.text.format.StyleSetterdecorate, decorations
- 
Method Details- 
selectorGets the entity selector.- Returns:
- the entity selector
- Since:
- 4.0.0
 
- 
selector@Contract(pure=true) @NotNull @NotNull EntityNBTComponent selector(@NotNull @NotNull String selector) Sets the entity selector.- Parameters:
- selector- the entity selector
- Returns:
- an entity NBT component
- Since:
- 4.0.0
 
- 
examinableProperties@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
- examinablePropertiesin interface- Component
- Specified by:
- examinablePropertiesin interface- net.kyori.examination.Examinable
- Specified by:
- examinablePropertiesin interface- NBTComponent<EntityNBTComponent,- EntityNBTComponent.Builder> 
 
 
-