Package org.spongepowered.api.registry
Interface DefaultedRegistryReference<T>
- Type Parameters:
- T- The type
- All Superinterfaces:
- RegistryKey<T>,- RegistryReference<T>,- Supplier<T>
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.registry.RegistryReferenceRegistryReference.Factory
- 
Method SummaryMethods inherited from interface org.spongepowered.api.registry.RegistryKeyasDefaultedReference, asReference, location, registryMethods inherited from interface org.spongepowered.api.registry.RegistryReferencefind, get
- 
Method Details- 
getT get()Gets the value from the defaultholdergiven when constructing this reference.Great care needs to be made in calling this method with any uncertainty as to if this reference will exist in the holder. Should this reference lack a value, a ValueNotFoundExceptionwill be thrown. Therefore, it is advised to callRegistryReference.find(RegistryHolder...)instead.
- 
find
- 
defaultHolderSupplier<RegistryHolder> defaultHolder()
 
-