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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
init()
proposeChanges
(DataTransactionResult result) Submits a newDataTransactionResult
as a proposal of variousValue.Mutable
s 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, wait
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.data.ChangeDataHolderEvent
targetHolder
Methods 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.ValueChange
Submits a newDataTransactionResult
as a proposal of variousValue.Mutable
s to be successfully offered/changed on the originalDataHolder.Mutable
.If the proposed
DataTransactionResult
provides additional values that were not changed in theChangeDataHolderEvent.ValueChange.originalChanges()
, the provided changes suggested to be successfully offered will be re-offered- Specified by:
proposeChanges
in interfaceChangeDataHolderEvent.ValueChange
- Parameters:
result
- The resulting offer- Returns:
- This event, for chaining
-