Package org.spongepowered.api.registry
Interface DefaultedRegistryType<T>
-
- All Superinterfaces:
RegistryType<T>
public interface DefaultedRegistryType<T> extends RegistryType<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.registry.RegistryType
RegistryType.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Supplier<RegistryHolder>
defaultHolder()
default DefaultedRegistryReference<T>
defaultReferenced(ResourceKey key)
Optional<Registry<T>>
find()
Registry<T>
get()
-
Methods inherited from interface org.spongepowered.api.registry.RegistryType
asDefaultedType, keyFor, location, referenced, root
-
-
-
-
Method Detail
-
defaultHolder
Supplier<RegistryHolder> defaultHolder()
-
defaultReferenced
default DefaultedRegistryReference<T> defaultReferenced(ResourceKey key)
-
-