Interface RegistryLoader<I,​O>

Type Parameters:
I - the input to load the registry from
O - 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.

@FunctionalInterface public interface RegistryLoader<I,​O>
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

    Modifier and Type
    Method
    Description
    load​(I input)
    Loads an output from the given input.
  • Method Details

    • load

      O load(I input)
      Loads an output from the given input.
      Parameters:
      input - the input
      Returns:
      the output