Interface RegionInteractItemEvent

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

public interface RegionInteractItemEvent extends RegionWorldEvent, RegionMessageEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    org.spongepowered.api.item.inventory.ItemStack
    Get the ItemStack that is the target of the event.
    Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
    Get the ServerPlayer that is the source of the event.
    Get the Region where the event occurred.
    org.spongepowered.api.entity.Entity
    Get the entity that is the target of the event.
    org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary
    Get the InteractItemEvent.Secondary.
    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

    getWorld
  • Method Details

    • getSource

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

      org.spongepowered.api.item.inventory.ItemStack getItemStack()
      Get the ItemStack that is the target of the event.
    • getRegion

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

      boolean isAllow()
      Get protect result.
    • getPlayer

      Optional<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
    • getSpongeEvent

      org.spongepowered.api.event.item.inventory.InteractItemEvent.Secondary getSpongeEvent()
      Get the InteractItemEvent.Secondary.
      Specified by:
      getSpongeEvent in interface RegionWorldEvent