Interface RegionChangeBlockEvent.Break

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

public static interface RegionChangeBlockEvent.Break extends RegionChangeBlockEvent, RegionMessageEvent
  • Method Details

    • getEntity

      org.spongepowered.api.entity.Entity getEntity()
      Get the entity that is the source of the event.
      Returns:
      entity
    • getPlayer

      Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()
      Getting the player if he is the cause of the event.
      Specified by:
      getPlayer in interface RegionMessageEvent
    • isAllowBreak

      boolean isAllowBreak()
      Get protect result.
    • 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