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>

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
  • Method Details

    • 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 interface Component
      Specified by:
      examinableProperties in interface net.kyori.examination.Examinable
      Specified by:
      examinableProperties in interface NBTComponent<EntityNBTComponent,EntityNBTComponent.Builder>