Interface RegionInteractEntityEvent

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionMessageEvent, RegionWorldEvent
All Known Subinterfaces:
RegionInteractEntityEvent.Primary, RegionInteractEntityEvent.Secondary

public interface RegionInteractEntityEvent extends RegionWorldEvent, RegionMessageEvent
  • Nested Class Summary

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

    Modifier and Type
    Method
    Description
    org.spongepowered.api.entity.Entity
    Get the entity that is the target of the event.
    org.spongepowered.api.entity.living.player.server.ServerPlayer
    Get the ServerPlayer that is the source of the event.
    org.spongepowered.api.event.entity.InteractEntityEvent
    Getting the Sponge event.
    May be `null` if the original event is not a Sponge 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

    getRegion, getWorld
  • Method Details

    • getSpongeEvent

      org.spongepowered.api.event.entity.InteractEntityEvent 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
    • getEntity

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

      org.spongepowered.api.entity.living.player.server.ServerPlayer getPlayer()
      Get the ServerPlayer that is the source of the event.
      Specified by:
      getPlayer in interface RegionMessageEvent
    • isAllowInteract

      boolean isAllowInteract()
      Get protect result.