Package net.kyori.adventure.text
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.0An abstract implementation of a text component.- Since:
- 4.0.0
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Component>childrenDeprecated.protected StylestyleDeprecated.-
Fields inherited from interface net.kyori.adventure.text.Component
EQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractComponent(@NotNull List<? extends ComponentLike> children, @NotNull Style style)Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull List<Component>children()Deprecated.Gets the unmodifiable list of children.booleanequals(@Nullable Object other)Deprecated.inthashCode()Deprecated.@NotNull Stylestyle()Deprecated.Gets the style of this component.abstract StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.kyori.adventure.text.Component
append, append, append, applyFallbackStyle, applyFallbackStyle, asComponent, asHoverEvent, children, clickEvent, clickEvent, color, color, colorIfAbsent, compact, componentBuilderApply, contains, contains, decorate, decoration, decoration, decoration, decorations, decorations, detectCycle, examinableProperties, font, font, hasDecoration, hasStyling, hoverEvent, hoverEvent, insertion, insertion, iterable, iterable, iterator, iterator, mergeStyle, mergeStyle, mergeStyle, replaceFirstText, replaceFirstText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, replaceText, spliterator, spliterator, style, style, style, style
-
Methods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEvent
-
Methods inherited from interface net.kyori.adventure.text.format.StyleSetter
decorate, decorations
-
-
-
-
Constructor Detail
-
AbstractComponent
protected AbstractComponent(@NotNull @NotNull List<? extends ComponentLike> children, @NotNull @NotNull Style style)Deprecated.
-
-
Method Detail
-
children
@NotNull public final @NotNull List<Component> children()
Deprecated.Description copied from interface:ComponentGets the unmodifiable list of children.
-
style
@NotNull public final @NotNull Style style()
Deprecated.Description copied from interface:ComponentGets the style of this component.
-
equals
public boolean equals(@Nullable @Nullable Object other)Deprecated.
-
-