Interface ListComponent
- All Superinterfaces:
BuildableComponent<ListComponent,,ListComponent.Builder> Component,ComponentLike
A component that contains a list of components.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for list components. -
Method Summary
Modifier and TypeMethodDescriptiondefault ListComponentappend(ComponentLike component) Appends the given component to this component.static ListComponent.BuilderCreates a new list component builder.static ListComponentcomponents(Component... components) Creates a new list component with the specified components.static ListComponentcomponents(ComponentColor textColor, Component... components) Creates a new list component with the specified text color and components.static ListComponentcomponents(TextStyle textStyle, Component... components) Creates a new list component with the specified text textStyle and components.default Componentcompress()Compresses this component.Returns the components in this list component.Methods inherited from interface com.xpdustry.distributor.api.component.BuildableComponent
toBuilderMethods inherited from interface com.xpdustry.distributor.api.component.Component
asComponent, getTextStyle
-
Method Details
-
components
Creates a new list component with the specified components.- Parameters:
components- the components- Returns:
- the list component
-
components
Creates a new list component with the specified text color and components.- Parameters:
textColor- the text colorcomponents- the components- Returns:
- the list component
-
components
Creates a new list component with the specified text textStyle and components.- Parameters:
textStyle- the text textStylecomponents- the components- Returns:
- the list component
-
components
Creates a new list component builder. -
getComponents
Returns the components in this list component. -
append
Description copied from interface:ComponentAppends the given component to this component. -
compress
Description copied from interface:ComponentCompresses this component. Removing empty subcommands and/or merging subcomponents if necessary.
-