Interface RegionMoveEntityEvent.ChangeRegion

All Superinterfaces:
org.spongepowered.api.event.Cancellable, org.spongepowered.api.event.Event, RegionMessageEvent, RegionMoveEntityEvent, RegionWorldEvent
Enclosing interface:
RegionMoveEntityEvent

public static interface RegionMoveEntityEvent.ChangeRegion extends RegionMoveEntityEvent, RegionMessageEvent
  • Method Details

    • isAllowFrom

      boolean isAllowFrom()
      Get protect result.
    • isAllowTo

      boolean isAllowTo()
      Get protect result.
    • toRegion

      Region toRegion()
      Get the Region where the event occurred.
    • getPlayer

      Optional<org.spongepowered.api.entity.living.player.server.ServerPlayer> getPlayer()
      Get the ServerPlayer that is the target of the event.
      Specified by:
      getPlayer in interface RegionMessageEvent
      Specified by:
      getPlayer in interface RegionMoveEntityEvent
      Returns:
      entity