Class Teleporter

java.lang.Object
org.sgrewritten.stargate.network.portal.Teleporter

public class Teleporter extends Object
The teleporter that takes care of the actual teleportation
  • Constructor Details

    • Teleporter

      public Teleporter(@NotNull @NotNull RealPortal destination, RealPortal origin, org.bukkit.block.BlockFace destinationFace, org.bukkit.block.BlockFace entranceFace, int cost, String teleportMessage, LanguageManager languageManager, StargateEconomyAPI economyManager)
      Instantiate a manager for advanced teleportation between a portal and a location
      Parameters:
      destination -

      The destination location of this teleporter

      origin -

      The origin portal the teleportation is originating from

      destinationFace -

      The direction the destination's portal is facing

      entranceFace -

      The direction the entrance portal is facing

      cost -

      The cost of teleportation for any players

      teleportMessage -

      The teleportation message to display if the teleportation is successful

  • Method Details

    • teleport

      public void teleport(org.bukkit.entity.Entity target)
      Teleports the given target entity
      Parameters:
      target -

      The entity that is the target of this teleportation