Class BlockTransactionReceipt
- java.lang.Object
-
- org.spongepowered.api.block.transaction.BlockTransactionReceipt
-
- All Implemented Interfaces:
DataSerializable
public final class BlockTransactionReceipt extends java.lang.Object implements DataSerializable
-
-
Constructor Summary
Constructors Constructor Description BlockTransactionReceipt(BlockSnapshot originalBlock, BlockSnapshot finalBlock, Operation operation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
contentVersion()
Gets the content version of thisDataSerializable
.BlockSnapshot
finalBlock()
Operation
operation()
BlockSnapshot
originalBlock()
DataContainer
toContainer()
Serializes this object into a comprehensibleDataContainer
.
-
-
-
Constructor Detail
-
BlockTransactionReceipt
public BlockTransactionReceipt(BlockSnapshot originalBlock, BlockSnapshot finalBlock, Operation operation)
-
-
Method Detail
-
originalBlock
public BlockSnapshot originalBlock()
-
finalBlock
public BlockSnapshot finalBlock()
-
operation
public Operation operation()
-
contentVersion
public int contentVersion()
Description copied from interface:DataSerializable
Gets the content version of thisDataSerializable
. The version may differ between instances of plugins and implementations such that theDataView
fromDataSerializable.toContainer()
may include different information, or remove other information as they are no longer deemed necessary. The version goes hand in hand withDataContentUpdater
as it is required when there exists anyDataView
of thisDataSerializable
with an "older" version.- Specified by:
contentVersion
in interfaceDataSerializable
- Returns:
- The version of the content being serialized
-
toContainer
public DataContainer toContainer()
Description copied from interface:DataSerializable
Serializes this object into a comprehensibleDataContainer
.- Specified by:
toContainer
in interfaceDataSerializable
- Returns:
- A newly created DataContainer
-
-