-
Method Summary
org.spongepowered.api.event.Cause
org.spongepowered.api.entity.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
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
-
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
-
-
isPrimary
boolean isPrimary()
Checks that the interaction with the block was performed by the primary hand.
-
isAllowInteract
boolean isAllowInteract()
Get protect result.