C - the component stylepublic interface ScopedComponent<C extends Component> extends Component
| Modifier and Type | Method and Description |
|---|---|
default C |
append(@NonNull Component component)
Appends a component to this component.
|
default C |
append(@NonNull ComponentBuilder<?,?> builder)
Appends a component to this component.
|
C |
children(@NonNull java.util.List<Component> children)
Sets the list of children.
|
default C |
clickEvent(@Nullable ClickEvent event)
Sets the click event of this component.
|
default C |
color(@Nullable TextColor color)
Sets the color of this component.
|
default C |
decoration(@NonNull TextDecoration decoration,
boolean flag)
Sets the state of a decoration on this component.
|
default C |
decoration(@NonNull TextDecoration decoration,
TextDecoration.State state)
Sets the value of a decoration on this component.
|
default C |
hoverEvent(@Nullable HoverEvent event)
Sets the hover event of this component.
|
default C |
insertion(@Nullable java.lang.String insertion)
Sets the string to be inserted when this component is shift-clicked.
|
default C |
mergeColor(@NonNull Component that)
Merges the color from another component into this component.
|
default C |
mergeDecorations(@NonNull Component that)
Merges the decorations from another component into this component.
|
default C |
mergeEvents(@NonNull Component that)
Merges the events from another component into this component.
|
children, clickEvent, color, contains, decoration, decorations, decorations, detectCycle, hasDecoration, hasStyling, hoverEvent, insertion, style, styleC children(@NonNull java.util.List<Component> children)
ComponentThe contents of children will be copied.
default C append(@NonNull Component component)
Componentdefault C append(@NonNull ComponentBuilder<?,?> builder)
Componentdefault C color(@Nullable TextColor color)
Componentdefault C decoration(@NonNull TextDecoration decoration, boolean flag)
Componentdecoration in interface Componentdecoration - the decorationflag - true if this component should have the decoration, false if
this component should not have the decorationdefault C decoration(@NonNull TextDecoration decoration, TextDecoration.State state)
Componentdecoration in interface Componentdecoration - the decorationstate - TextDecoration.State#TRUE if this component should have the
decoration, TextDecoration.State#FALSE if this component should not
have the decoration, and TextDecoration.State#NOT_SET if the decoration
should not have a set valuedefault C clickEvent(@Nullable ClickEvent event)
ComponentclickEvent in interface Componentevent - the click eventdefault C hoverEvent(@Nullable HoverEvent event)
ComponenthoverEvent in interface Componentevent - the hover eventdefault C insertion(@Nullable java.lang.String insertion)
Componentdefault C mergeColor(@NonNull Component that)
ComponentmergeColor in interface Componentthat - the other componentdefault C mergeDecorations(@NonNull Component that)
ComponentmergeDecorations in interface Componentthat - the other componentdefault C mergeEvents(@NonNull Component that)
ComponentmergeEvents in interface Componentthat - the other component