Interface RegionExplosionEvent.Surface

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionExplosionEvent, RegionWorldEvent
Enclosing interface:
RegionExplosionEvent

public static interface RegionExplosionEvent.Surface extends RegionExplosionEvent
  • Method Details

    • getTransactions

      List<org.spongepowered.api.block.transaction.BlockTransaction> getTransactions()
      Gets a list of the Transactions 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()
      Description copied from interface: RegionWorldEvent
      Getting the Sponge event.
      May be `null` if the original event is not a Sponge event.
      Specified by:
      getSpongeEvent in interface RegionWorldEvent