Interface DataStore.Builder.HolderStep
- All Superinterfaces:
ResettableBuilder<DataStore,
DataStore.Builder>
- All Known Subinterfaces:
DataStore.Builder.EndStep
,DataStore.Builder.SerializersStep
- Enclosing interface:
DataStore.Builder
public static interface DataStore.Builder.HolderStep
extends ResettableBuilder<DataStore,DataStore.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionholder
(io.leangen.geantyref.TypeToken<? extends DataHolder>... typeTokens) Adds one or more allowed dataHolder typesholder
(Class<? extends DataHolder>... types) Adds one or more allowed dataHolder typesMethods inherited from interface org.spongepowered.api.util.ResettableBuilder
reset
-
Method Details
-
holder
DataStore.Builder.SerializersStep holder(io.leangen.geantyref.TypeToken<? extends DataHolder>... typeTokens) Adds one or more allowed dataHolder types- Parameters:
typeTokens
- the dataHolder types- Returns:
- this builder for chaining
-
holder
Adds one or more allowed dataHolder typesThese must not be parameterized types.
- Parameters:
types
- the dataHolder types- Returns:
- this builder for chaining
-