Package org.spongepowered.api.event.data
Interface ChangeDataHolderEvent.ValueChange
- All Superinterfaces:
Cancellable,ChangeDataHolderEvent,Event
- All Known Implementing Classes:
AbstractValueChangeEvent
- Enclosing interface:
ChangeDataHolderEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent
ChangeDataHolderEvent.ValueChange -
Method Summary
Modifier and TypeMethodDescriptionGets the ending resultingDataTransactionResultthat will be offered to theDataHolder.Gets the originalDataTransactionResultof theValue.Mutables that have changed in this event.proposeChanges(DataTransactionResult result) Submits a newDataTransactionResultas a proposal of variousValue.Mutables to be successfully offered/changed on the originalDataHolder.Mutable.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent
targetHolder
-
Method Details
-
originalChanges
DataTransactionResult originalChanges()Gets the originalDataTransactionResultof theValue.Mutables that have changed in this event.- Returns:
- The original changes of values
-
proposeChanges
Submits a newDataTransactionResultas a proposal of variousValue.Mutables to be successfully offered/changed on the originalDataHolder.Mutable.If the proposed
DataTransactionResultprovides additional values that were not changed in theoriginalChanges(), the provided changes suggested to be successfully offered will be re-offered- Parameters:
result- The resulting offer- Returns:
- This event, for chaining
-
endResult
DataTransactionResult endResult()Gets the ending resultingDataTransactionResultthat will be offered to theDataHolder.- Returns:
- The final transaction details to be submitted
-