Interface SelectorComponent

All Superinterfaces:
Buildable<SelectorComponent,SelectorComponent.Builder>, BuildableComponent<SelectorComponent,SelectorComponent.Builder>, Component, ComponentBuilderApplicable, ComponentLike, net.kyori.examination.Examinable, HoverEventSource<Component>, ScopedComponent<SelectorComponent>, StyleGetter, StyleSetter<Component>

A component that can display the name of entities found with a given selector.

This component consists of:

selector
a Minecraft selector.(e.g @p, @a)

This component is rendered serverside and can therefore receive platform-defined context. See the documentation for your respective platform for more info

Since:
4.0.0
  • Method Details

    • pattern

      @NotNull @NotNull String pattern()
      Gets the selector pattern.
      Returns:
      the selector pattern
      Since:
      4.0.0
    • pattern

      @Contract(pure=true) @NotNull @NotNull SelectorComponent pattern(@NotNull @NotNull String pattern)
      Sets the selector pattern.
      Parameters:
      pattern - the selector pattern
      Returns:
      a selector component
      Since:
      4.0.0
    • separator

      @Nullable @Nullable Component separator()
      Gets the separator.
      Returns:
      the separator
      Since:
      4.8.0
    • separator

      @NotNull @NotNull SelectorComponent separator(@Nullable @Nullable ComponentLike separator)
      Sets the separator.
      Parameters:
      separator - the separator
      Returns:
      the separator
      Since:
      4.8.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