-
-
Method Summary
org.spongepowered.api.block.BlockSnapshot
Gets the default replacement snapshot.
org.spongepowered.api.block.BlockSnapshot
Gets the original snapshot.
org.spongepowered.api.block.transaction.BlockTransaction
Get default Transaction
for this event.
org.spongepowered.api.event.block.ChangeBlockEvent.All
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
List<org.spongepowered.api.block.transaction.BlockTransaction>
Gets a list of the Transaction
s for this event.
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.Event
cause, context, source
-
Method Details
-
getTransactions
List<org.spongepowered.api.block.transaction.BlockTransaction> getTransactions()
Gets a list of the Transaction
s for this event. If a
transaction is requested to be marked as "invalid",
Transaction.setValid(boolean)
can be used.
- Returns:
- The unmodifiable list of transactions
-
getDefaultTransaction
org.spongepowered.api.block.transaction.BlockTransaction getDefaultTransaction()
Get default Transaction
for this event. If a
transaction is requested to be marked as "invalid",
Transaction.setValid(boolean)
can be used.
- Returns:
- transaction
-
afterTransaction
org.spongepowered.api.block.BlockSnapshot afterTransaction()
Gets the default replacement snapshot.
- Returns:
- The default replacement
-
beforeTransaction
org.spongepowered.api.block.BlockSnapshot beforeTransaction()
Gets the original snapshot.
- Returns:
- The original snapshot
-
getSpongeEvent
org.spongepowered.api.event.block.ChangeBlockEvent.All getSpongeEvent()
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
- Specified by:
getSpongeEvent
in interface RegionWorldEvent