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 java.lang.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 java.util.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 java.util.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 java.util.List<Component>
children()
Deprecated.Gets the unmodifiable list of children.boolean
equals(@Nullable java.lang.Object other)
Deprecated.int
hashCode()
Deprecated.@NotNull Style
style()
Deprecated.Gets the style of this component.abstract java.lang.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, appendNewline, appendSpace, applyFallbackStyle, applyFallbackStyle, asComponent, asHoverEvent, children, clickEvent, clickEvent, color, color, colorIfAbsent, compact, componentBuilderApply, contains, contains, decorate, decoration, decoration, decoration, decorationIfAbsent, 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 java.util.List<? extends ComponentLike> children, @NotNull @NotNull Style style)
Deprecated.
-
-
Method Detail
-
children
@NotNull public final @NotNull java.util.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 java.lang.Object other)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public abstract java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
-