Contents
Interface Registry.RegistrationWrapFunction<T extends Registration>
- Type Parameters:
T- the type of registration.
- Enclosing class:
Registry<T extends Registration>
public static interface Registry.RegistrationWrapFunction<T extends Registration>
A function to wrap registrations.
-
Method Summary
Modifier and TypeMethodDescriptionwrap(T registration, BooleanSupplier isEnabled, Runnable unregister) Called to wrap a registration.
-
Method Details
-
wrap
Called to wrap a registration.- Parameters:
registration- The registration to wrap.isEnabled- Whether the registration is enabled.unregister- The unregister action.- Returns:
- the wrapped registration.
-