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>
children
Deprecated.protected Style
style
Deprecated.-
Fields inherited from interface net.kyori.adventure.text.Component
EQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractComponent(@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.boolean
equals(@Nullable Object other)
Deprecated.int
hashCode()
Deprecated.@NotNull Style
style()
Deprecated.Gets the style of this component.abstract String
toString()
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:Component
Gets the unmodifiable list of children.
-
style
@NotNull public final @NotNull Style style()
Deprecated.Description copied from interface:Component
Gets the style of this component.
-
equals
public boolean equals(@Nullable @Nullable Object other)
Deprecated.
-
-