Interface BuildableComponent<C extends BuildableComponent<C,B>,B extends BuildableComponent.Builder<C,B>>
- Type Parameters:
C- the type of the componentB- the type of the builder
- All Superinterfaces:
Component,ComponentLike
- All Known Subinterfaces:
ListComponent,NumberComponent,TemporalComponent,TextComponent,TranslatableComponent
public interface BuildableComponent<C extends BuildableComponent<C,B>,B extends BuildableComponent.Builder<C,B>>
extends Component
A component that can be built and converted to a builder.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuildableComponent.Builder<C extends BuildableComponent<C,B>, B extends BuildableComponent.Builder<C, B>> A builder for a buildable component. -
Method Summary
Methods inherited from interface com.xpdustry.distributor.api.component.Component
append, asComponent, compress, getTextStyle
-
Method Details
-
toBuilder
B toBuilder()Creates a new builder from this component.
-