Class AbstractComponent

java.lang.Object
net.kyori.adventure.text.AbstractComponent
All Implemented Interfaces:
Component, ComponentBuilderApplicable, ComponentLike, HoverEventSource<Component>, StyleGetter, StyleSetter<Component>, net.kyori.examination.Examinable

@ScheduledForRemoval(inVersion="5.0.0") @Deprecated public abstract class AbstractComponent extends Object implements Component
Deprecated.
for removal since 4.10.0
An abstract implementation of a text component.
Since:
4.0.0
  • Field Details

    • children

      protected final List<Component> children
      Deprecated.
    • style

      protected final Style style
      Deprecated.
  • Constructor Details

    • AbstractComponent

      protected AbstractComponent(@NotNull @NotNull List<? extends ComponentLike> children, @NotNull @NotNull Style style)
      Deprecated.
  • Method Details

    • children

      @NotNull public final @NotNull List<Component> children()
      Deprecated.
      Description copied from interface: Component
      Gets the unmodifiable list of children.
      Specified by:
      children in interface Component
      Returns:
      the unmodifiable list of children
    • style

      @NotNull public final @NotNull Style style()
      Deprecated.
      Description copied from interface: Component
      Gets the style of this component.
      Specified by:
      style in interface Component
      Returns:
      the style of this component
    • equals

      public boolean equals(@Nullable @Nullable Object other)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public abstract String toString()
      Deprecated.
      Overrides:
      toString in class Object