-
Nested Class Summary
Nested Classes
static interface
static interface
-
Method Summary
org.spongepowered.api.entity.Entity
Get the entity that is the target of the event.
org.spongepowered.api.entity.living.player.server.ServerPlayer
Get the ServerPlayer
that is the source of the event.
org.spongepowered.api.event.entity.InteractEntityEvent
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
boolean
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.entity.InteractEntityEvent getSpongeEvent()
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
- Specified by:
getSpongeEvent
in interface RegionWorldEvent
-
getEntity
org.spongepowered.api.entity.Entity getEntity()
Get the entity that is the target of the event.
- Returns:
- entity
-
getPlayer
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
-
isAllowInteract
boolean isAllowInteract()
Get protect result.