Package org.spongepowered.api.data
Interface MutableDataProviderBuilder<H extends DataHolder.Mutable,V extends Value<E>,E>
- All Superinterfaces:
AbstractBuilder<DataProvider<V,
,E>> Builder<DataProvider<V,
,E>, MutableDataProviderBuilder<H, V, E>> ResettableBuilder<DataProvider<V,
E>, MutableDataProviderBuilder<H, V, E>>
public interface MutableDataProviderBuilder<H extends DataHolder.Mutable,V extends Value<E>,E>
extends Builder<DataProvider<V,E>,MutableDataProviderBuilder<H,V,E>>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
<NH extends H>
MutableDataProviderBuilder<NH,V, E> dataHolder
(io.leangen.geantyref.TypeToken<NH> holder) <NH extends H>
MutableDataProviderBuilder<NH,V, E> dataHolder
(Class<NH> holder) deleteAndGet
(Function<H, DataTransactionResult> delete) <NV extends Value<NE>,
NE>
MutableDataProviderBuilder<H,NV, NE> resetOnDelete
(Function<H, E> resetOnDeleteTo) resetOnDelete
(Supplier<E> resetOnDeleteTo) set
(BiConsumer<H, E> set) setAnd
(BiFunction<H, E, Boolean> setAnd) setAndGet
(BiFunction<H, E, DataTransactionResult> setAndGet)
-
Method Details
-
key
-
dataHolder
<NH extends H> MutableDataProviderBuilder<NH,V, dataHolderE> (io.leangen.geantyref.TypeToken<NH> holder) -
dataHolder
-
get
-
set
-
setAnd
-
delete
-
deleteAnd
-
deleteAndGet
-
resetOnDelete
-
resetOnDelete
-
setAndGet
-
supports
-
build
DataProvider<V,E> build()- Specified by:
build
in interfaceAbstractBuilder<H extends DataHolder.Mutable>
-