Interface SchematicRegistry

All Superinterfaces:
Registry<Nameable,SchematicCache>

public interface SchematicRegistry extends Registry<Nameable,SchematicCache>
A registry to register, manage and retrieve a SchematicCache.
  • Method Details

    • getCache

      @Deprecated(forRemoval=true) default SchematicCache getCache(Nameable key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the cache associated with this name
      Parameters:
      key - name
      Returns:
      cache
      Throws:
      IllegalArgumentException - if no entry is registered with this key.
    • reload

      void reload()
      Reloads all registered caches.
    • schematicCount

      int schematicCount()
      Returns the total amount of registered schematics
      Returns:
      schematic count.
    • directoryCount

      int directoryCount()
      Returns the total amount of registered directories
      Returns:
      directory count