Class BlockTransaction
java.lang.Object
org.spongepowered.api.data.Transaction<BlockSnapshot>
org.spongepowered.api.block.transaction.BlockTransaction
- All Implemented Interfaces:
- DataSerializable
A specialized 
Transaction<BlockSnapshot> that covers
 the required changes of one BlockSnapshot to another, with the added benefit
 of a contextual understanding of what sort of operation is being
 performed to change from one block to another. It is possible to serialize a
 particular transaction, but to associate a transaction with it's "post" state, refer
 to the receipt variant that exposes only what
 was and what is the final result.- 
Constructor SummaryConstructorsConstructorDescriptionBlockTransaction(BlockSnapshot original, BlockSnapshot defaultReplacement, @Nullable List<? extends BlockSnapshot> intermediary, Operation operation) BlockTransaction(BlockSnapshot original, BlockSnapshot defaultReplacement, Operation operation) 
- 
Method SummaryModifier and TypeMethodDescriptionintGets the content version of thisDataSerializable.booleaninthashCode()Serializes this object into a comprehensibleDataContainer.toString()Methods inherited from class org.spongepowered.api.data.Transactioncustom, defaultReplacement, finalReplacement, intermediary, invalidate, isValid, original, setCustom, setValid, validate
- 
Constructor Details- 
BlockTransactionpublic BlockTransaction(BlockSnapshot original, BlockSnapshot defaultReplacement, Operation operation) 
- 
BlockTransactionpublic BlockTransaction(BlockSnapshot original, BlockSnapshot defaultReplacement, @Nullable List<? extends BlockSnapshot> intermediary, Operation operation) 
 
- 
- 
Method Details- 
operation
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- Transaction<BlockSnapshot>
 
- 
equals- Overrides:
- equalsin class- Transaction<BlockSnapshot>
 
- 
toString- Overrides:
- toStringin class- Transaction<BlockSnapshot>
 
- 
contentVersionpublic 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 interface- DataSerializable
- Overrides:
- contentVersionin class- Transaction<BlockSnapshot>
- Returns:
- The version of the content being serialized
 
- 
toContainerDescription copied from interface:DataSerializableSerializes this object into a comprehensibleDataContainer.- Specified by:
- toContainerin interface- DataSerializable
- Overrides:
- toContainerin class- Transaction<BlockSnapshot>
- Returns:
- A newly created DataContainer
 
 
-