Uses of Interface
org.sgrewritten.stargate.api.network.portal.RealPortal
Package
Description
-
Uses of RealPortal in org.sgrewritten.stargate.api
Modifier and TypeMethodDescriptionvoid
BlockHandlerResolver.registerRemoval
(RegistryAPI registry, org.bukkit.Location location, RealPortal portal) Modifier and TypeMethodDescriptionvoid
BlockHandlerResolver.registerPlacement
(@NotNull RegistryAPI registry, @NotNull org.bukkit.Location location, @NotNull List<RealPortal> portals, @NotNull org.bukkit.Material material, org.bukkit.OfflinePlayer player) -
Uses of RealPortal in org.sgrewritten.stargate.api.database
Modifier and TypeMethodDescriptionvoid
StorageAPI.addPortalPosition
(RealPortal portal, StorageType portalType, PortalPosition portalPosition) Add a portalPosition to a portal in the databasevoid
StorageAPI.removePortalPosition
(RealPortal portal, StorageType portalType, PortalPosition portalPosition) Remove a portalPosition to a portal in the databaseboolean
StorageAPI.savePortalToStorage
(RealPortal portal) Saves the given portal to storagevoid
StorageAPI.setPortalPositionMetaData
(RealPortal portal, PortalPosition portalPosition, String data, StorageType portalType) Set misc data of a portal position -
Uses of RealPortal in org.sgrewritten.stargate.api.event.portal
ModifierConstructorDescriptionStargateSignFormatPortalEvent
(@NotNull RealPortal portal, SignLine[] signLines, PortalPosition portalPosition, org.bukkit.Location location) -
Uses of RealPortal in org.sgrewritten.stargate.api.gate
Modifier and TypeMethodDescriptionGateAPI.getPortal()
Get the portal assigned to this portal positionModifier and TypeMethodDescriptionvoid
GateAPI.assignPortal
(RealPortal realPortal) Assign a real portal to this gate -
Uses of RealPortal in org.sgrewritten.stargate.api.network
Modifier and TypeMethodDescriptionPortalBuilder.build()
Build an instance of a portalRegistryAPI.getPortal
(org.bukkit.Location location) Get the portal at the given locationRegistryAPI.getPortal
(org.bukkit.Location location, GateStructureType structureType) Gets the portal with the given structure type at the given locationRegistryAPI.getPortal
(org.bukkit.Location location, GateStructureType[] structureTypes) Gets the portal with any of the given structure types at the given locationRegistryAPI.getPortal
(BlockLocation blockLocation, GateStructureType structureType) Get the portal with the given structure type at the given locationRegistryAPI.getPortal
(BlockLocation blockLocation, GateStructureType[] structureTypes) Get the portal with any of the given structure types at the given locationModifier and TypeMethodDescriptionRegistryAPI.getPortalsFromTouchingBlock
(org.bukkit.Location location, GateStructureType structureType) Get portal from block next to portal, will randomly choose one portal if block is next to two portals@NotNull Set
<RealPortal> RegistryAPI.getPortalsInChunk
(StargateChunk chunk) Get all the portals in a chunkModifier and TypeMethodDescriptionvoid
NetworkManager.destroyPortal
(RealPortal portal) Saves to databasevoid
RegistryAPI.registerLocation
(GateStructureType structureType, BlockLocation location, RealPortal portal) Registers a location with attached portal and structure type to this registryvoid
RegistryAPI.registerPortal
(RealPortal portal) Register a portal to this registryvoid
RegistryAPI.registerPortalPosition
(PortalPosition portalPosition, org.bukkit.Location location, RealPortal portal) Register given portal position to registry.void
NetworkManager.savePortal
(RealPortal portal, Network network) Add portal to network and save to storageRegistryAPI.savePortalPosition
(RealPortal portal, org.bukkit.Location location, PositionType type, org.bukkit.plugin.Plugin plugin) Save given portal position to storage and register it to the registryModifier and TypeMethodDescriptionvoid
RegistryAPI.registerLocations
(GateStructureType structureType, Map<BlockLocation, RealPortal> locationsMap) Registers the existence of the given structure type in the given locations -
Uses of RealPortal in org.sgrewritten.stargate.api.network.portal
Modifier and TypeMethodDescriptionvoid
PortalPosition.assignPortal
(RealPortal portal) void
Portal.teleportHere
(org.bukkit.entity.Entity target, RealPortal origin) Teleports an entity to this portal -
Uses of RealPortal in org.sgrewritten.stargate.api.network.portal.behavior
Modifier and TypeMethodDescriptionvoid
AbstractPortalBehavior.assignPortal
(@NotNull RealPortal portal) void
LegacyBungeeBehavior.assignPortal
(@NotNull RealPortal portal) void
NetworkedBehavior.assignPortal
(@NotNull RealPortal portal) void
PortalBehavior.assignPortal
(@NotNull RealPortal portal) Assign this behavior to a portal -
Uses of RealPortal in org.sgrewritten.stargate.api.network.proxy
Modifier and TypeMethodDescriptionvoid
PluginMessageSender.sendCreatePortal
(RealPortal realPortal) Send create portal messagevoid
PluginMessageSender.sendDeletePortal
(RealPortal realPortal) Send delete portal message -
Uses of RealPortal in org.sgrewritten.stargate.api.permission
Modifier and TypeMethodDescriptionboolean
PermissionManager.hasAccessPermission
(RealPortal portal) Check if entity has permission to access portalboolean
PermissionManager.hasCreatePermissions
(RealPortal portal) Check if entity has permission to create portalboolean
PermissionManager.hasDestroyPermissions
(RealPortal portal) Check if entity has permission to destroy portalboolean
PermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) Check if entity has permission to open portalboolean
PermissionManager.hasTeleportPermissions
(RealPortal entrance) Check if the entity has permission to teleport through portal -
Uses of RealPortal in org.sgrewritten.stargate.database
Modifier and TypeMethodDescriptionvoid
SQLDatabase.addPortalPosition
(RealPortal portal, StorageType portalType, PortalPosition portalPosition) SQLQueryGenerator.generateAddPortalStatement
(Connection connection, RealPortal portal, StorageType portalType) Gets a prepared statement for adding a portalSQLQueryGenerator.generateSetPortalPositionMeta
(Connection connection, RealPortal portal, PortalPosition portalPosition, String meta, StorageType portalType) void
SQLDatabase.removePortalPosition
(RealPortal portal, StorageType portalType, PortalPosition portalPosition) boolean
SQLDatabase.savePortalToStorage
(RealPortal portal) void
SQLDatabase.setPortalPositionMetaData
(RealPortal portal, PortalPosition portalPosition, String data, StorageType portalType) -
Uses of RealPortal in org.sgrewritten.stargate.gate
-
Uses of RealPortal in org.sgrewritten.stargate.manager
Modifier and TypeMethodDescriptionboolean
StargatePermissionManager.hasAccessPermission
(RealPortal portal) boolean
UnrestrictedPermissionManager.hasAccessPermission
(RealPortal portal) boolean
StargatePermissionManager.hasCreatePermissions
(RealPortal portal) boolean
UnrestrictedPermissionManager.hasCreatePermissions
(RealPortal portal) boolean
StargatePermissionManager.hasDestroyPermissions
(RealPortal portal) boolean
UnrestrictedPermissionManager.hasDestroyPermissions
(RealPortal portal) boolean
StargatePermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) boolean
UnrestrictedPermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) boolean
StargatePermissionManager.hasTeleportPermissions
(RealPortal entrance) boolean
UnrestrictedPermissionManager.hasTeleportPermissions
(RealPortal entrance) -
Uses of RealPortal in org.sgrewritten.stargate.network
Modifier and TypeMethodDescriptionStargateRegistry.getPortal
(org.bukkit.Location location) StargateRegistry.getPortal
(org.bukkit.Location location, GateStructureType structureType) StargateRegistry.getPortal
(org.bukkit.Location location, GateStructureType[] structureTypes) StargateRegistry.getPortal
(BlockLocation blockLocation, GateStructureType structureType) StargateRegistry.getPortal
(BlockLocation blockLocation, GateStructureType[] structureTypes) Modifier and TypeMethodDescriptionStargateRegistry.getPortalsFromTouchingBlock
(org.bukkit.Location location, GateStructureType structureType) @NotNull Set
<RealPortal> StargateRegistry.getPortalsInChunk
(StargateChunk chunk) Modifier and TypeMethodDescriptionvoid
StargateNetworkManager.destroyPortal
(RealPortal portal) void
StargateRegistry.registerLocation
(GateStructureType structureType, BlockLocation location, RealPortal portal) void
StargateRegistry.registerPortal
(@NotNull RealPortal portal) void
StargateRegistry.registerPortalPosition
(PortalPosition portalPosition, org.bukkit.Location location, RealPortal portal) void
StargateNetworkManager.savePortal
(RealPortal portal, Network network) StargateRegistry.savePortalPosition
(RealPortal portal, org.bukkit.Location location, PositionType type, org.bukkit.plugin.Plugin plugin) Modifier and TypeMethodDescriptionvoid
StargateRegistry.registerLocations
(GateStructureType structureType, Map<BlockLocation, RealPortal> locationsMap) -
Uses of RealPortal in org.sgrewritten.stargate.network.portal
Modifier and TypeClassDescriptionclass
An abstract implementation of a real portalModifier and TypeMethodDescriptionvoid
LegacyVirtualPortal.teleportHere
(org.bukkit.entity.Entity target, RealPortal origin) void
StargatePortal.teleportHere
(org.bukkit.entity.Entity target, RealPortal origin) void
VirtualPortal.teleportHere
(org.bukkit.entity.Entity target, RealPortal origin) ModifierConstructorDescriptionTeleporter
(@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 -
Uses of RealPortal in org.sgrewritten.stargate.network.proxy
Modifier and TypeMethodDescriptionvoid
InterServerMessageSender.sendCreatePortal
(RealPortal realPortal) void
LocalNetworkMessageSender.sendCreatePortal
(RealPortal realPortal) void
InterServerMessageSender.sendDeletePortal
(RealPortal realPortal) void
LocalNetworkMessageSender.sendDeletePortal
(RealPortal realPortal) -
Uses of RealPortal in org.sgrewritten.stargate.util.database
Modifier and TypeMethodDescriptionstatic void
PortalStorageHelper.addPortalPosition
(PreparedStatement addPositionStatement, RealPortal portal, PortalPosition portalPosition) -
Uses of RealPortal in org.sgrewritten.stargate.util.portal
Modifier and TypeMethodDescriptionstatic RealPortal
PortalCreationHelper.createPortal
(Network network, String name, String destination, String targetServer, Set<PortalFlag> flags, GateAPI gate, UUID ownerUUID, StargateAPI stargateAPI, String metaData) Creates a new portal of the correct typestatic RealPortal
PortalCreationHelper.createPortal
(Network network, PortalData portalData, Gate gate, StargateAPI stargateAPI) Creates a new portal of the correct typeModifier and TypeMethodDescriptionstatic org.bukkit.Location
TeleportationHelper.findViableSpawnLocation
(org.bukkit.entity.Entity entity, RealPortal destinationPortal) Tries to find an alternative viable spawn location for the specified entityPortalPermissionHelper.getAccessPermissions
(RealPortal portal, org.bukkit.entity.Entity actor) Generate access permissionsPortalPermissionHelper.getCreatePermissions
(RealPortal portal, org.bukkit.entity.Entity actor) Generate create permissionsPortalPermissionHelper.getDestroyPermissions
(RealPortal portal, org.bukkit.entity.Entity actor) Generate destroy permissionsPortalPermissionHelper.getOpenPermissions
(RealPortal entrance, Portal exit, org.bukkit.entity.Entity actor) Generate open permissionsPortalPermissionHelper.getTeleportPermissions
(RealPortal entrance, org.bukkit.entity.Entity target) Generate teleport permissionsstatic boolean
PortalHelper.portalValidityCheck
(RealPortal portal, NetworkManager networkManager)