-
Method Summary
Optional<org.spongepowered.api.entity.Entity>
Get the Entity
that is the source 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.event.entity.SpawnEntityEvent.Pre
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
-
getEntity
Optional<org.spongepowered.api.entity.Entity> getEntity()
Get the Entity
that is the source of the event.
- Returns:
- entity
-
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
- Returns:
- player
-
-
isAllow
boolean isAllow()
Get protect result.
-
getSpongeEvent
org.spongepowered.api.event.entity.SpawnEntityEvent.Pre getSpongeEvent()
Getting the Sponge event.
May be `null` if the original event is not a Sponge event.
- Specified by:
getSpongeEvent
in interface RegionWorldEvent