Interface ListComponent
- All Superinterfaces:
Buildable<ListComponent,,ListComponent.Builder> BuildableComponent<ListComponent,,ListComponent.Builder> Component
A component that contains a list of components.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA builder for list components. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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(ComponentColor textColor, Collection<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.static ListComponentcomponents(TextStyle textStyle, Collection<Component> components) Creates a new list component with the specified text textStyle and components.static ListComponentcomponents(Collection<Component> components) Creates a new list component with the specified components.default Componentcompress()Compresses this component.Returns the components in this list component.Methods inherited from interface com.xpdustry.distributor.api.component.Component
getTextStyle
-
Method Details
-
components
Creates a new list component builder. -
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 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 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 with the specified text textStyle and components.- Parameters:
textStyle- the text textStylecomponents- the components- Returns:
- the list component
-
getComponents
Returns the components in this list component. -
compress
Description copied from interface:ComponentCompresses this component. Removing empty subcommands and/or merging subcomponents if necessary.
-