-
-
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.
int
List<org.spongepowered.api.block.transaction.BlockTransaction>
Gets a list of the Transaction
s for this event.
boolean
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.Event
context, source
-
Method Details
-
isAllowFlow
boolean isAllowFlow()
Get protect result.
-
getFlowLevel
int getFlowLevel()
Get liquid flow level.
-
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