Interface ProtoDataStore<C>

  • Type Parameters:
    C - Type of the store configuration object

    @Immutable(builder=false)
    public interface ProtoDataStore<C>
    The deserialized configuration options from a data store.

    This can be loaded to a full data store by querying the associated factory.

    Since:
    2.0.0
    • Method Detail

      • identifier

        @Parameter
        String identifier()
        Identifier for a single data store instance.
        Returns:
        store identifier
        Since:
        2.0.0
      • config

        @Parameter
        C config()
        The object holding data store configuration.
        Returns:
        store configuration
        Since:
        2.0.0
      • factory

        @Parameter
        DataStoreFactory<Cfactory()
        Factory for the type of data store used.
        Returns:
        factory instance
        Since:
        2.0.0
      • serialize

        default void serialize​(org.spongepowered.configurate.ConfigurationNode node)
                        throws org.spongepowered.configurate.serialize.SerializationException
        Throws:
        org.spongepowered.configurate.serialize.SerializationException