Package org.spongepowered.api.registry
Interface RegistryType<T>
- All Known Subinterfaces:
 DefaultedRegistryType<T>
public interface RegistryType<T>
- 
Nested Class Summary
Nested Classes - 
Method Summary
Modifier and TypeMethodDescription<V extends T>
DefaultedRegistryType<V>asDefaultedType(Supplier<RegistryHolder> defaultHolder) Gets a utilitydefaulted typefor easier querying of the intention of where the registry is contained.default ResourceKeykeyFor(RegistryHolder holder, T value) location()static <T> RegistryType<T>of(ResourceKey root, ResourceKey location) default RegistryReference<T>referenced(ResourceKey key) root() 
- 
Method Details
- 
of
 - 
root
ResourceKey root() - 
location
ResourceKey location() - 
keyFor
 - 
referenced
 - 
asDefaultedType
Gets a utilitydefaulted typefor easier querying of the intention of where the registry is contained.- Type Parameters:
 V- The type- Parameters:
 defaultHolder- The default holder- Returns:
 - The defaulted type
 
 
 -