Interface ReloadableRegistry<T extends net.kyori.adventure.key.Keyed>

All Superinterfaces:
Iterable<T>, Registry<T>

@NonExtendable public interface ReloadableRegistry<T extends net.kyori.adventure.key.Keyed> extends Registry<T>
A registry rebuilt from ReloadableProviders on every reload (D5). Reads always see one complete snapshot.
  • Method Details

    • generation

      long generation()
      Returns:
      a counter incremented on every successful swap. Holders of keys into this registry re-resolve them when it changes (ยง7.3).