Class LegacyVirtualPortal
java.lang.Object
org.sgrewritten.stargate.network.portal.VirtualPortal
org.sgrewritten.stargate.network.portal.LegacyVirtualPortal
- All Implemented Interfaces:
Portal
A virtual portal compatible with the legacy BungeeCord behavior
-
Field Summary
Fields inherited from class org.sgrewritten.stargate.network.portal.VirtualPortal
server -
Constructor Summary
ConstructorsConstructorDescriptionLegacyVirtualPortal(String server, String name, Network network, Set<PortalFlag> flags, UUID ownerUUID) Instantiates a new legacy virtual portal -
Method Summary
Modifier and TypeMethodDescriptionvoidteleportHere(org.bukkit.entity.Entity target, RealPortal origin) Teleports an entity to this portalMethods inherited from class org.sgrewritten.stargate.network.portal.VirtualPortal
addFlag, close, destroy, getAllFlagsString, getGlobalId, getId, getName, getNetwork, getOwnerUUID, getServer, getStorageType, hasFlag, isDestroyed, isOpen, isOpenFor, open, overrideDestination, removeFlag, setName, setNetwork, setOwner, updateState
-
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
Description copied from interface:PortalTeleports an entity to this portal- Specified by:
teleportHerein interfacePortal- Overrides:
teleportHerein classVirtualPortal- Parameters:
target-The target entity to teleport
origin-The origin portal the entity is teleporting from
-