Interface KeyDependentJavaRegistryReader<T>
- Type Parameters:
T- the type this reader parses into
- All Known Subinterfaces:
JavaRegistryReader<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface weakens the definitions defined in
JavaRegistryReader, by taking a RegistryEntryContext as JavaRegistryReader.Context,
which provides RegistryEntryContext.id() to access the Key of the registry entry being parsed. This is useful when
trying to map dynamic Java content to static bedrock content.
Generally try to avoid the need on this interface though: because the reader depends on a Key for a registry entry, it cannot be used when parsing inline
registry entries, such as from Holders or HolderSets.
- See Also:
-
Method Summary
-
Method Details
-
read
-