Interface RegionImpactEvent

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionMessageEvent, RegionWorldEvent
All Known Subinterfaces:
RegionImpactEvent.Block, RegionImpactEvent.Entity

public interface RegionImpactEvent extends RegionWorldEvent, RegionMessageEvent
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
    Getting the ServerPlayer if he is the cause of the event.
    Get the Region where the event occurred.
    org.spongepowered.api.entity.Entity
    Get the entity that is the source of the event.
    boolean
    Get protect result.

    Methods inherited from interface org.spongepowered.api.event.Cancellable

    isCancelled, setCancelled

    Methods inherited from interface org.spongepowered.api.event.Event

    cause, context, source

    Methods inherited from interface sawfowl.regionguard.api.events.world.RegionMessageEvent

    getMessage, setMessage

    Methods inherited from interface sawfowl.regionguard.api.events.world.RegionWorldEvent

    getSpongeEvent, getWorld
  • Method Details

    • getSource

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

      boolean isAllow()
      Get protect result.
    • getPlayer

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

      Region getRegion()
      Get the Region where the event occurred.
      Specified by:
      getRegion in interface RegionWorldEvent