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:
NBTComponent
- Since Minecraft:
- 1.14
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EntityNBTComponent.Builder
An entity NBT component builder.
-
Field Summary
-
Fields inherited from interface net.kyori.adventure.text.Component
EQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty>
examinableProperties()
@NotNull String
selector()
Gets the entity selector.@NotNull EntityNBTComponent
selector(@NotNull String selector)
Sets the entity selector.-
Methods inherited from interface net.kyori.adventure.text.BuildableComponent
toBuilder
-
Methods inherited from interface net.kyori.adventure.text.Component
applyFallbackStyle, applyFallbackStyle, asComponent, asHoverEvent, children, clickEvent, color, compact, componentBuilderApply, contains, contains, decoration, decorations, decorations, detectCycle, font, font, hasDecoration, hasStyling, hoverEvent, insertion, iterable, iterable, iterator, iterator, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, spliterator, spliterator, style, style
-
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
-
Methods inherited from interface net.kyori.adventure.text.NBTComponent
interpret, interpret, nbtPath, nbtPath, separator, separator
-
Methods inherited from interface net.kyori.adventure.text.ScopedComponent
append, append, append, children, clickEvent, color, colorIfAbsent, decorate, decoration, decoration, hoverEvent, insertion, mergeStyle, mergeStyle, mergeStyle, style, style, style
-
Methods inherited from interface net.kyori.adventure.text.format.StyleSetter
decorate, decorations
-
-
-
-
Method Detail
-
selector
@NotNull @NotNull String selector()
Gets 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:
examinableProperties
in interfaceComponent
- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
- Specified by:
examinableProperties
in interfaceNBTComponent<EntityNBTComponent,EntityNBTComponent.Builder>
-
-