Class AbstractValueChangeEvent
java.lang.Object
org.spongepowered.api.event.impl.data.AbstractValueChangeEvent
- All Implemented Interfaces:
Cancellable,ChangeDataHolderEvent,ChangeDataHolderEvent.ValueChange,Event
public abstract class AbstractValueChangeEvent
extends Object
implements ChangeDataHolderEvent.ValueChange
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent
ChangeDataHolderEvent.ValueChange -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit()proposeChanges(DataTransactionResult result) Submits a newDataTransactionResultas a proposal of variousValue.Mutables to be successfully offered/changed on the originalDataHolder.Mutable.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent
targetHolderMethods inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent.ValueChange
endResult, originalChanges
-
Field Details
-
originalChanges
-
endResult
-
-
Constructor Details
-
AbstractValueChangeEvent
public AbstractValueChangeEvent()
-
-
Method Details
-
init
protected void init() -
proposeChanges
Description copied from interface:ChangeDataHolderEvent.ValueChangeSubmits 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 theChangeDataHolderEvent.ValueChange.originalChanges(), the provided changes suggested to be successfully offered will be re-offered- Specified by:
proposeChangesin interfaceChangeDataHolderEvent.ValueChange- Parameters:
result- The resulting offer- Returns:
- This event, for chaining
-