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.0
An abstract implementation of a text component.
- Since:
- 4.0.0
-
Field Summary
FieldsFields inherited from interface net.kyori.adventure.text.Component
EQUALS, EQUALS_IDENTITY, IS_NOT_EMPTY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractComponent(@NotNull List<? extends ComponentLike> children, @NotNull Style style) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionchildren()Deprecated.Gets the unmodifiable list of children.booleanDeprecated.inthashCode()Deprecated.final @NotNull Stylestyle()Deprecated.Gets the style of this component.@NotNull ComponentBuilder<?,?> Deprecated.Returns a builder for this component.abstract StringtoString()Deprecated.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.kyori.adventure.text.Component
append, append, append, append, append, appendNewline, appendSpace, applyFallbackStyle, applyFallbackStyle, asComponent, asHoverEvent, children, clickEvent, clickEvent, color, color, colorIfAbsent, compact, 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, shadowColor, shadowColor, shadowColorIfAbsent, spliterator, spliterator, style, style, style, styleMethods inherited from interface net.kyori.examination.Examinable
examinableName, examineMethods inherited from interface net.kyori.adventure.text.event.HoverEventSource
asHoverEventMethods inherited from interface net.kyori.adventure.text.format.StyleSetter
decorate, decorations
-
Field Details
-
children
Deprecated. -
style
Deprecated.
-
-
Constructor Details
-
AbstractComponent
protected AbstractComponent(@NotNull @NotNull List<? extends ComponentLike> children, @NotNull @NotNull Style style) Deprecated.
-
-
Method Details
-
children
Deprecated.Description copied from interface:ComponentGets the unmodifiable list of children. -
style
Deprecated.Description copied from interface:ComponentGets the style of this component. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
toBuilder
Deprecated.Description copied from interface:ComponentReturns a builder for this component.
-