Interface RegionInteractBlockEvent

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

public interface RegionInteractBlockEvent extends RegionWorldEvent, RegionMessageEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.api.event.Cause
    Get plugin Cause.
    org.spongepowered.api.entity.Entity
    Getting the Entity.
    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.event.block.InteractBlockEvent
    Getting the InteractBlockEvent.
    boolean
    Get protect result.
    boolean
    Checks that the interaction with the block was performed by the primary hand.

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

    isCancelled, setCancelled

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

    context, source

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

    getMessage, setMessage

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

    getWorld
  • Method Details

    • cause

      org.spongepowered.api.event.Cause cause()
      Get plugin Cause.
      Specified by:
      cause in interface org.spongepowered.api.event.Event
    • getSpongeEvent

      org.spongepowered.api.event.block.InteractBlockEvent getSpongeEvent()
      Getting the InteractBlockEvent.
      Specified by:
      getSpongeEvent in interface RegionWorldEvent
    • getEntity

      org.spongepowered.api.entity.Entity getEntity()
      Getting the Entity.
    • 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
    • isPrimary

      boolean isPrimary()
      Checks that the interaction with the block was performed by the primary hand.
    • isAllowInteract

      boolean isAllowInteract()
      Get protect result.