Class BlockTransactionReceipt
java.lang.Object
org.spongepowered.api.block.transaction.BlockTransactionReceipt
- All Implemented Interfaces:
DataSerializable
-
Constructor Summary
ConstructorsConstructorDescriptionBlockTransactionReceipt(BlockSnapshot originalBlock, BlockSnapshot finalBlock, Operation operation) -
Method Summary
Modifier and TypeMethodDescriptionintGets the content version of thisDataSerializable.Serializes this object into a comprehensibleDataContainer.
-
Constructor Details
-
BlockTransactionReceipt
public BlockTransactionReceipt(BlockSnapshot originalBlock, BlockSnapshot finalBlock, Operation operation)
-
-
Method Details
-
originalBlock
-
finalBlock
-
operation
-
contentVersion
public int contentVersion()Description copied from interface:DataSerializableGets the content version of thisDataSerializable. The version may differ between instances of plugins and implementations such that theDataViewfromDataSerializable.toContainer()may include different information, or remove other information as they are no longer deemed necessary. The version goes hand in hand withDataContentUpdateras it is required when there exists anyDataViewof thisDataSerializablewith an "older" version.- Specified by:
contentVersionin interfaceDataSerializable- Returns:
- The version of the content being serialized
-
toContainer
Description copied from interface:DataSerializableSerializes this object into a comprehensibleDataContainer.- Specified by:
toContainerin interfaceDataSerializable- Returns:
- A newly created DataContainer
-