Interface RegionPistonEvent

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionMessageEvent, RegionWorldEvent
All Known Subinterfaces:
RegionPistonEvent.Grief, RegionPistonEvent.OneRegion

public interface RegionPistonEvent 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.util.Direction
    Getting piston direction.
    Optional<org.spongepowered.api.entity.Entity>
    Getting the Entity who activated the piston.
    List<org.spongepowered.api.world.server.ServerLocation>
    Getting a collection of all blocks that are moved by the piston.
    Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer>
    Getting the ServerPlayer who activated the piston.
    Getting the region in which the piston is located.
    org.spongepowered.api.event.block.ChangeBlockEvent.Pre
    Getting the Sponge event.
    May be `null` if the original event is not a Sponge event.

    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

    • getSpongeEvent

      org.spongepowered.api.event.block.ChangeBlockEvent.Pre 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
    • getDirection

      org.spongepowered.api.util.Direction getDirection()
      Getting piston direction.
    • getRegion

      Region getRegion()
      Getting the region in which the piston is located.
      Specified by:
      getRegion in interface RegionWorldEvent
    • getPistonMovedBlocks

      List<org.spongepowered.api.world.server.ServerLocation> getPistonMovedBlocks()
      Getting a collection of all blocks that are moved by the piston.
    • getPlayer

      Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()
      Getting the ServerPlayer who activated the piston.
      Specified by:
      getPlayer in interface RegionMessageEvent
    • getEntity

      Optional<org.spongepowered.api.entity.Entity> getEntity()
      Getting the Entity who activated the piston.