Package org.spongepowered.api.registry
Interface BuilderProvider
-
public interface BuilderProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends ResettableBuilder<?,? super T>>
Tprovide(java.lang.Class<T> builderClass)
Gets a builder of the desired class type, examples may include:ItemStack.Builder
, etc.
-
-
-
Method Detail
-
provide
<T extends ResettableBuilder<?,? super T>> T provide(java.lang.Class<T> builderClass) throws TypeNotFoundException
Gets a builder of the desired class type, examples may include:ItemStack.Builder
, etc.- Type Parameters:
T
- The type of builder- Parameters:
builderClass
- The class of the builder- Returns:
- The builder, if available
- Throws:
TypeNotFoundException
- If the type provided has not been registered
-
-