public interface CatalogBuilder<C extends CatalogType,B extends ResettableBuilder<C,B>> extends ResettableBuilder<C,B>
CatalogTypes.| Modifier and Type | Method and Description |
|---|---|
C |
build()
Builds the
CatalogType of type C. |
default B |
from(C value)
Deprecated.
It's not allowed to duplicate catalog types.
|
B |
id(String id)
Sets the id of the
CatalogType (without the namespace/plugin id). |
B |
name(String name)
Sets the name of the
CatalogType. |
B |
name(Translation translation)
Sets the name of the
CatalogType as a Translation. |
resetB id(String id)
CatalogType (without the namespace/plugin id).id - The idB name(String name)
CatalogType. Defaults to id(String).name - The nameB name(Translation translation)
translation - The name translationC build() throws IllegalStateException
CatalogType of type C.
The last PluginContainer in the cause stack will be used to
determine which plugin was used to construct the CatalogType.
IllegalStateException - If not all required options were specified@Deprecated default B from(C value)
ResettableBuilderfrom in interface ResettableBuilder<C extends CatalogType,B extends ResettableBuilder<C,B>>value - The built object