Class LegacyVirtualPortal

java.lang.Object
org.sgrewritten.stargate.network.portal.VirtualPortal
org.sgrewritten.stargate.network.portal.LegacyVirtualPortal
All Implemented Interfaces:
Portal

public class LegacyVirtualPortal extends VirtualPortal
A virtual portal compatible with the legacy BungeeCord behavior
  • Constructor Details

    • LegacyVirtualPortal

      public LegacyVirtualPortal(String server, String name, Network network, Set<PortalFlag> flags, UUID ownerUUID)
      Instantiates a new legacy virtual portal
      Parameters:
      server -

      The server this virtual portal belongs to

      name -

      The name of this virtual portal

      network -

      The network this virtual portal belongs to

      flags -

      The flags enabled for this virtual portal

      ownerUUID -

      The UUID of this virtual portal's owner

  • Method Details

    • teleportHere

      public void teleportHere(org.bukkit.entity.Entity target, RealPortal origin)
      Description copied from interface: Portal
      Teleports an entity to this portal
      Specified by:
      teleportHere in interface Portal
      Overrides:
      teleportHere in class VirtualPortal
      Parameters:
      target -

      The target entity to teleport

      origin -

      The origin portal the entity is teleporting from