Interface DataStore.Builder.SerializersStep

    • Method Detail

      • keys

        DataStore.Builder.EndStep keys​(Key<?> key,
                                       Key<?>... moreKeys)
        Adds one or more keys using the default implemented serializers for the given key.

        The ResourceKeyed.key() resource-key} value will be used as DataQuery

        Parameters:
        key - The data key
        moreKeys - more data keys
        Returns:
        this builder for chaining
      • key

        default <T,​V extends Value<T>> DataStore.Builder.EndStep key​(Key<V> key,
                                                                           java.lang.String... dataQueries)
        Adds the default implemented serializers for the given key.
        Parameters:
        key - The data key
        dataQueries - The dataQuery to serialize this key under
        Returns:
        this builder for chaining
      • key

        <T,​V extends Value<T>> DataStore.Builder.EndStep key​(Key<V> key,
                                                                   DataQuery dataQuery)
        Adds the default implemented serializers for the given key.
        Parameters:
        key - The data key
        dataQuery - The dataQuery to serialize this key under
        Returns:
        this builder for chaining
      • key

        <T,​V extends Value<T>> DataStore.Builder.EndStep key​(Key<V> key,
                                                                   java.util.function.BiConsumer<DataView,​T> serializer,
                                                                   java.util.function.Function<DataView,​java.util.Optional<T>> deserializer)
        Adds the serializers for the given key.
        Parameters:
        key - The data key
        serializer - the data serializer
        deserializer - the data serserializer
        Returns:
        this builder for chaining