Interface DataStore.Builder
- All Superinterfaces:
ResettableBuilder<DataStore,DataStore.Builder>
- Enclosing interface:
DataStore
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfacestatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionpluginData(ResourceKey key) Starts building a DataStore for plugin data.pluginData(ResourceKey key, int version) Starts building a DataStore for plugin data.Starts building a DataStore for raw data.Methods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
-
Method Details
-
pluginData
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
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 registeredversion- the content-version of your data.- Returns:
- this builder for chaining
-
vanillaData
DataStore.Builder.HolderStep vanillaData()Starts building a DataStore for raw data.Serializers and deserializers will operate on the root
DataViewwhich includes all data from vanilla minecraft and moreConsider using
pluginData(org.spongepowered.api.ResourceKey)instead.- Returns:
- this builder for chaining
-