Interface TypedKey<T>
- Type Parameters:
T- the type of the entry
- All Superinterfaces:
Reference<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Reference
Reference.Inline<T> -
Method Summary
Modifier and TypeMethodDescriptionkey()Returns the plain key, without the registry.registry()Returns the registry the key belongs to.static <T> TypedKey<T> withRegistry(RegistryKey<T> registry, String key) Returns a key of the given registry.static <T> TypedKey<T> withRegistry(RegistryKey<T> registry, Key key) Returns a key of the given registry.
-
Method Details
-
withRegistry
Returns a key of the given registry.- Type Parameters:
T- the type of the entry- Parameters:
registry- the registrykey- the key of the entry- Returns:
- a key of the given registry
- Since:
- 0.1.0
-
withRegistry
Returns a key of the given registry.- Type Parameters:
T- the type of the entry- Parameters:
registry- the registrykey- the key of the entry, for instanceminecraft:stone- Returns:
- a key of the given registry
- Since:
- 0.1.0
-
registry
RegistryKey<T> registry()Returns the registry the key belongs to.- Returns:
- the registry the key belongs to
- Since:
- 0.1.0
-
key
Key key()Returns the plain key, without the registry.- Returns:
- the plain key, without the registry
- Since:
- 0.1.0
-