Interface PackRepository


  • public interface PackRepository
    Holds all the packs that are known to an Engine.
    • Method Detail

      • all

        java.util.Collection<Pack> all()
        Returns:
        The packs as an unmodifiable Collection.
      • disabled

        java.util.Collection<Pack> disabled()
        Returns:
        The disabled packs as an unmodifiable Collection.
      • enabled

        java.util.Collection<Pack> enabled()
        Returns:
        The enabled packs as an unmodifiable Collection.
      • pack

        java.util.Optional<Pack> pack​(java.lang.String id)
        Parameters:
        id - The id of the pack
        Returns:
        The Pack or Optional.empty() if not found
      • pack

        Pack pack​(org.spongepowered.plugin.PluginContainer container)
        Parameters:
        container - The container
        Returns:
        The plugin's Pack