Package org.spongepowered.api.registry
Interface RegistryType<T>
- All Known Subinterfaces:
DefaultedRegistryType<T>
public interface RegistryType<T>
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription<V extends T>
DefaultedRegistryType<V>asDefaultedType
(Supplier<RegistryHolder> defaultHolder) Gets a utilitydefaulted type
for easier querying of the intention of where the registry is contained.default ResourceKey
keyFor
(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 type
for 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
-