Interface RegisterBuilderEvent
- All Superinterfaces:
Event,LifecycleEvent
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.lifecycle.LifecycleEvent
game
-
Method Details
-
register
<T extends Builder<?,? super T>> void register(Class<T> builderClass, Supplier<? super T> supplier) throws DuplicateRegistrationException Registers a newbuilder.- Type Parameters:
T- The type- Parameters:
builderClass- The builder typesupplier- The supplier of the builder instance- Throws:
DuplicateRegistrationException- If the type is already registered
-