Interface RegistryLoader<I,O>
- Type Parameters:
I
- the input to load the registry fromO
- the output of the registry
- All Known Implementing Classes:
AnnotatedRegistryLoader
,BiomeIdentifierRegistryLoader
,BlockEntityRegistryLoader
,CollisionRegistryLoader
,EffectRegistryLoader
,EnchantmentRegistryLoader
,MultiResourceRegistryLoader
,NbtRegistryLoader
,ParticleTypesRegistryLoader
,PotionMixRegistryLoader
,SoundEventsRegistryLoader
,SoundRegistryLoader
,SoundTranslatorRegistryLoader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a registry loader.
RegistryLoader
is the input value, which can be anything,
but is commonly a file path or something similar. RegistryLoader
represents the output
type returned by this, which can also be anything. See NbtRegistryLoader
as a good and simple example of how this system works.-
Method Summary
-
Method Details
-
load
Loads an output from the given input.- Parameters:
input
- the input- Returns:
- the output
-