Interface RegisterBuilderEvent
-
- All Superinterfaces:
Event,LifecycleEvent
public interface RegisterBuilderEvent extends LifecycleEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends Builder<?,? super T>>
voidregister(java.lang.Class<T> builderClass, java.util.function.Supplier<? super T> supplier)Registers a newbuilder.-
Methods inherited from interface org.spongepowered.api.event.lifecycle.LifecycleEvent
game
-
-
-
-
Method Detail
-
register
<T extends Builder<?,? super T>> void register(java.lang.Class<T> builderClass, java.util.function.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
-
-