registerIfAbsent

abstract fun <T> registerIfAbsent(type: Class<T>, instanceSupplier: BootstrapRegistry.InstanceSupplier<T>)

Register a specific type with the registry if one is not already present.

Parameters

<T>

the instance type

type

the instance type

instanceSupplier

the instance supplier