-
Nested Class Summary
Nested Classes
static interface
static interface
-
Method Summary
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
-
Method Details
-
getSpongeEvent
org.spongepowered.api.event.block.ChangeBlockEvent.Pre getSpongeEvent()
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.
-
-
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.