Package org.spongepowered.api.event.data
Interface ChangeDataHolderEvent.ValueChange
- All Superinterfaces:
- Cancellable,- ChangeDataHolderEvent,- Event
- All Known Implementing Classes:
- AbstractValueChangeEvent
- Enclosing interface:
- ChangeDataHolderEvent
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEventChangeDataHolderEvent.ValueChange
- 
Method SummaryModifier 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.CancellableisCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEventtargetHolder
- 
Method Details- 
originalChangesDataTransactionResult originalChanges()Gets the originalDataTransactionResultof theValue.Mutables that have changed in this event.- Returns:
- The original changes of values
 
- 
proposeChangesSubmits 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
 
- 
endResultDataTransactionResult endResult()Gets the ending resultingDataTransactionResultthat will be offered to theDataHolder.- Returns:
- The final transaction details to be submitted
 
 
-