Interface RegistryModule<T>

All Known Subinterfaces:
CatalogRegistryModule<T>

public interface RegistryModule<T>
A module that handles registrations of Objects, usually CatalogTypes. The use of this is to manage like-object registrations in a centralized manner, without requiring hard ids or content affecting behavior. All modules are to be loaded and registered with the Registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Used to register a custom type such as a Flag.
    default void
    Performs default registrations of objects for use with the Registry.
  • Method Details

    • registerDefaults

      default void registerDefaults()
      Performs default registrations of objects for use with the Registry. This is only called once, either at the pre-initialization phase of the Registry
    • registerCustomType

      void registerCustomType(T type)
      Used to register a custom type such as a Flag.
      Parameters:
      type - The custom type to register