Interface DataStore.Builder

    • Method Detail

      • pluginData

        DataStore.Builder.HolderStep pluginData​(ResourceKey key)
        Starts building a DataStore for plugin data.

        Serializers and Deserializers will operate on their own DataView.

        Parameters:
        key - the key under which all data from this DataStore is registered
        Returns:
        this builder for chaining
      • pluginData

        DataStore.Builder.UpdaterStep pluginData​(ResourceKey key,
                                                 int version)
        Starts building a DataStore for plugin data.

        Serializers and Deserializers will operate on their own DataView.

        Parameters:
        key - the key under which all data from this DataStore is registered
        version - the content-version of your data.
        Returns:
        this builder for chaining