Uses of Interface
org.sgrewritten.stargate.api.network.portal.Portal
Packages that use Portal
Package
Description
-
Uses of Portal in org.sgrewritten.stargate.api
Methods in org.sgrewritten.stargate.api with parameters of type PortalModifier and TypeMethodDescriptionbooleanBlockHandlerInterface.registerBlock(org.bukkit.Location blockLocation, @Nullable org.bukkit.OfflinePlayer player, Portal portal, Metadata metaData) Called if a Stargate is created or a block is placed, and the result of getHandledMaterial matches with the detected locationvoidBlockHandlerInterface.unRegisterBlock(org.bukkit.Location blockLocation, Portal portal) Called if a Stargate is removed, and the add-on has registered this location -
Uses of Portal in org.sgrewritten.stargate.api.database
Methods in org.sgrewritten.stargate.api.database with parameters of type PortalModifier and TypeMethodDescriptionvoidStorageAPI.addFlag(Character flagChar, Portal portal, StorageType portalType) Add a flag to a portal in the databaseStorageAPI.getPortalMetaData(Portal portal, StorageType portalType) Get misc data of a portalStorageAPI.getPortalPositionMetaData(Portal portal, PortalPosition portalPosition, StorageType portalType) Get misc data of a portal positionvoidStorageAPI.removeFlag(Character flagChar, Portal portal, StorageType portalType) Remove a flag to a portal in the databasevoidStorageAPI.removePortalFromStorage(Portal portal) Removes a portal and its associated data from storagevoidStorageAPI.setPortalMetaData(Portal portal, String data, StorageType portalType) Set misc data of a portal -
Uses of Portal in org.sgrewritten.stargate.api.event.portal
Methods in org.sgrewritten.stargate.api.event.portal that return PortalModifier and TypeMethodDescription@Nullable PortalStargateOpenPortalEvent.getDestination()StargateTeleportPortalEvent.getDestination()Gets the destination portalStargateListPortalEvent.getListedPortal()StargatePortalEvent.getPortal()Gets the portal involved in this stargate eventMethods in org.sgrewritten.stargate.api.event.portal with parameters of type PortalModifier and TypeMethodDescriptionvoidStargateOpenPortalEvent.setDestination(Portal destination) Constructors in org.sgrewritten.stargate.api.event.portal with parameters of type PortalModifierConstructorDescriptionprotectedCancellableStargatePortalEvent(@NotNull Portal portal, boolean async) Instantiates a new cancellable stargate eventStargateAccessPortalEvent(org.bukkit.entity.Entity travellingEntity, Portal portal, boolean deny, String denyReason) Instantiates a new stargate access eventStargateActivatePortalEvent(@NotNull Portal portal, @NotNull org.bukkit.entity.Entity entity, @NotNull List<String> destinations, String destination) Instantiates a new stargate activate eventStargateClosePortalEvent(@NotNull Portal portal, boolean force) Instantiates a new stargate closing eventStargateCreatePortalEvent(@NotNull org.bukkit.OfflinePlayer player, @NotNull Portal portal, @NotNull String[] lines, boolean deny, String denyReason, double cost) Instantiates a new stargate creation eventStargateDeactivatePortalEvent(Portal portal) Instantiates a new stargate deactivation eventStargateDestroyPortalEvent(@NotNull Portal portal, BlockEventType cause) Instantiates a new cancellable stargate eventStargateListPortalEvent(@NotNull Portal portal, org.bukkit.entity.Entity entity, Portal listedPortal, boolean deny) Instantiates a new stargate eventStargateOpenPortalEvent(org.bukkit.entity.Player player, @NotNull Portal portal, @Nullable Portal destination, boolean cancelled, boolean force) Instantiates a new stargate open eventStargatePlayerDestroyPortalEvent(@NotNull Portal portal, @NotNull org.bukkit.entity.Player player, boolean deny, String denyReason, double cost) Instantiates a new Stargate Destroy EventStargatePortalLoadEvent(@NotNull Portal portal) Instantiates a new portal load eventStargateSignDyeChangePortalEvent(@NotNull Portal portal, org.bukkit.DyeColor colorChange, org.bukkit.Location location, PortalPosition portalPosition) Instantiates a new stargate eventStargateTeleportPortalEvent(@NotNull org.bukkit.entity.Entity travellingEntity, @NotNull Portal portal, Portal destination, @NotNull org.bukkit.Location exit) Instantiates a new stargate portal event -
Uses of Portal in org.sgrewritten.stargate.api.event.portal.message
Constructors in org.sgrewritten.stargate.api.event.portal.message with parameters of type PortalModifierConstructorDescriptionAsyncStargateSendMessagePortalEvent(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message) Instantiates a new stargate player eventprotectedStargateSendMessagePortalEvent(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message, boolean async) Instantiates a new stargate player eventSyncStargateSendMessagePortalEvent(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message) Instantiates a new stargate player event -
Uses of Portal in org.sgrewritten.stargate.api.manager
Methods in org.sgrewritten.stargate.api.manager that return PortalModifier and TypeMethodDescriptionBungeeManager.pullFromQueue(String playerName) Gets a portal from the BungeeCord teleportation queue -
Uses of Portal in org.sgrewritten.stargate.api.network
Methods in org.sgrewritten.stargate.api.network that return PortalModifier and TypeMethodDescriptionGets the portal with the given nameMethods in org.sgrewritten.stargate.api.network that return types with arguments of type PortalModifier and TypeMethodDescriptionNetwork.getAllPortals()Gets all portals belonging to this networkMethods in org.sgrewritten.stargate.api.network with parameters of type PortalModifier and TypeMethodDescriptionvoidAdds the given portal to this networkbooleanNetwork.canSeePortal(Portal portalToSee, Portal origin, org.bukkit.entity.Player player) Whether the origin portal can list / choose the portal to see.Network.getAvailablePortals(org.bukkit.entity.Player player, Portal requester) Gets names of all portals available to the given player from the given portalvoidNetwork.removePortal(Portal portal) Removes the given portal from this networkvoidvoidRegistryAPI.unregisterPortal(Portal portal) Removes the given portal from registry. -
Uses of Portal in org.sgrewritten.stargate.api.network.portal
Subinterfaces of Portal in org.sgrewritten.stargate.api.network.portalModifier and TypeInterfaceDescriptioninterfaceA real portal with a physical sign that is located on this serverMethods in org.sgrewritten.stargate.api.network.portal with parameters of type PortalModifier and TypeMethodDescriptionvoidRealPortal.doTeleport(@NotNull org.bukkit.entity.Entity target, @Nullable Portal destination) Teleports the given entity to given destinationvoidOpen this portal without any checksvoidPortal.overrideDestination(Portal destination) Forces this portal to temporarily go to the given destination regardless of the normal destination(s) -
Uses of Portal in org.sgrewritten.stargate.api.network.portal.behavior
Methods in org.sgrewritten.stargate.api.network.portal.behavior that return PortalModifier and TypeMethodDescription@Nullable PortalFixedBehavior.getDestination()@Nullable PortalLegacyBungeeBehavior.getDestination()NetworkedBehavior.getDestination()@Nullable PortalPortalBehavior.getDestination()@Nullable PortalRandomBehavior.getDestination() -
Uses of Portal in org.sgrewritten.stargate.api.network.portal.formatting
Methods in org.sgrewritten.stargate.api.network.portal.formatting that return PortalConstructors in org.sgrewritten.stargate.api.network.portal.formatting with parameters of type PortalModifierConstructorDescriptionPortalLine(List<Holder<StargateComponent>> components, @Nullable Portal portal, SignLineType type) PortalLine(HighlightingStyle style, @Nullable Portal portal, net.md_5.bungee.api.ChatColor textColor, net.md_5.bungee.api.ChatColor pointerColor, SignLineType type) -
Uses of Portal in org.sgrewritten.stargate.api.network.portal.formatting.data
Methods in org.sgrewritten.stargate.api.network.portal.formatting.data that return PortalConstructors in org.sgrewritten.stargate.api.network.portal.formatting.data with parameters of type Portal -
Uses of Portal in org.sgrewritten.stargate.api.permission
Methods in org.sgrewritten.stargate.api.permission with parameters of type PortalModifier and TypeMethodDescriptionbooleanPermissionManager.hasOpenPermissions(RealPortal entrance, Portal exit) Check if entity has permission to open portal -
Uses of Portal in org.sgrewritten.stargate.database
Methods in org.sgrewritten.stargate.database with parameters of type PortalModifier and TypeMethodDescriptionvoidSQLDatabase.addFlag(Character flagChar, Portal portal, StorageType portalType) SQLQueryGenerator.generateGetPortalPositionStatement(Connection connection, Portal portal, PortalPosition portalPosition, StorageType portalType) SQLQueryGenerator.generateGetPortalStatement(Connection connection, Portal portal, StorageType portalType) Generate statement to fetch the data on specified portalSQLQueryGenerator.generateRemoveFlagsStatement(Connection connection, StorageType portalType, Portal portal) Gets a prepared statement for removing the relation between a portal and its flagsSQLQueryGenerator.generateRemoveFlagStatement(Connection connection, StorageType portalType, Portal portal, Character flagChar) Gets a prepared statement for removing the relation between a portal and its flagSQLQueryGenerator.generateRemovePortalPositionsStatement(Connection connection, StorageType portalType, Portal portal) Gets a prepared statement for removing a positionSQLQueryGenerator.generateRemovePortalPositionStatement(Connection connection, StorageType portalType, Portal portal, PortalPosition portalPosition) SQLQueryGenerator.generateRemovePortalStatement(Connection connection, Portal portal, StorageType portalType) Gets a prepared statement for removing a portalSQLQueryGenerator.generateSetPortalMetaStatement(Connection connection, Portal portal, String meta, StorageType portalType) SQLDatabase.getPortalMetaData(Portal portal, StorageType portalType) SQLDatabase.getPortalPositionMetaData(Portal portal, PortalPosition portalPosition, StorageType portalType) voidSQLDatabase.removeFlag(Character flagChar, Portal portal, StorageType portalType) voidSQLDatabase.removePortalFromStorage(Portal portal) voidSQLDatabase.setPortalMetaData(Portal portal, String data, StorageType portalType) -
Uses of Portal in org.sgrewritten.stargate.economy
Methods in org.sgrewritten.stargate.economy with parameters of type PortalModifier and TypeMethodDescriptionbooleanEconomyManager.chargePlayer(org.bukkit.OfflinePlayer player, Portal origin, double amount) booleanStargateEconomyAPI.chargePlayer(org.bukkit.OfflinePlayer player, Portal origin, double amount) Charges the given player for using the given portalbooleanEconomyManager.refundPlayer(org.bukkit.OfflinePlayer player, Portal origin, double amount) booleanStargateEconomyAPI.refundPlayer(org.bukkit.OfflinePlayer player, Portal origin, double amount) Refunds a player's payment for using a portal -
Uses of Portal in org.sgrewritten.stargate.exception
Methods in org.sgrewritten.stargate.exception that return PortalConstructors in org.sgrewritten.stargate.exception with parameters of type PortalModifierConstructorDescriptionLocalisedMessageException(String localizedMessage, @Nullable Portal portal, @Nullable MessageType messageType) -
Uses of Portal in org.sgrewritten.stargate.manager
Methods in org.sgrewritten.stargate.manager that return PortalMethods in org.sgrewritten.stargate.manager with parameters of type PortalModifier and TypeMethodDescriptionbooleanStargatePermissionManager.hasOpenPermissions(RealPortal entrance, Portal exit) booleanUnrestrictedPermissionManager.hasOpenPermissions(RealPortal entrance, Portal exit) -
Uses of Portal in org.sgrewritten.stargate.network
Methods in org.sgrewritten.stargate.network that return PortalMethods in org.sgrewritten.stargate.network that return types with arguments of type PortalMethods in org.sgrewritten.stargate.network with parameters of type PortalModifier and TypeMethodDescriptionvoidbooleanStargateNetwork.canSeePortal(Portal portalToSee, Portal origin, org.bukkit.entity.Player player) StargateNetwork.getAvailablePortals(org.bukkit.entity.Player player, Portal requester) voidStargateNetwork.removePortal(Portal portal) voidvoidStargateRegistry.unregisterPortal(Portal portal) -
Uses of Portal in org.sgrewritten.stargate.network.portal
Classes in org.sgrewritten.stargate.network.portal that implement PortalModifier and TypeClassDescriptionclassA virtual portal compatible with the legacy BungeeCord behaviorclassAn abstract implementation of a real portalclassA virtual representation of a portal on a different serverFields in org.sgrewritten.stargate.network.portal declared as PortalMethods in org.sgrewritten.stargate.network.portal with parameters of type PortalModifier and TypeMethodDescriptionvoidStargatePortal.doTeleport(@NotNull org.bukkit.entity.Entity target, @Nullable Portal destination) static GlobalPortalIdGlobalPortalId.getFromPortal(Portal portal) Gets a global portal id from the given portalvoidvoidStargatePortal.overrideDestination(Portal destination) voidVirtualPortal.overrideDestination(Portal destination) -
Uses of Portal in org.sgrewritten.stargate.util
Methods in org.sgrewritten.stargate.util that return types with arguments of type PortalModifier and TypeMethodDescriptionLegacyPortalStorageLoader.loadPortalsFromStorage(File dir, String defaultNetworkName, StargateAPI stargateAPI) Loads legacy portals in .db files from the given folderMethods in org.sgrewritten.stargate.util with parameters of type PortalModifier and TypeMethodDescriptionstatic StringBungeeHelper.generateJsonMessage(Portal portal, StargateProtocolRequestType requestType) static StringBungeeHelper.generateLegacyTeleportMessage(String player, Portal portal) static StringBungeeHelper.generateTeleportJsonMessage(String player, Portal portal) static voidMessageUtils.sendMessageFromPortal(Portal portal, @Nullable org.bukkit.entity.Entity receiver, String message, MessageType type) Send a message from this portal; triggers aStargateSendMessagePortalEventstatic booleanEconomyHelper.shouldChargePlayer(org.bukkit.entity.Player player, Portal portal, BypassPermission bypassPermission) Checks whether the given player should be charged for destroying a portal -
Uses of Portal in org.sgrewritten.stargate.util.portal
Methods in org.sgrewritten.stargate.util.portal with parameters of type PortalModifier and TypeMethodDescriptionstatic booleanPortalDestructionHelper.destroyPortalIfHasPermissionAndCanPay(org.bukkit.entity.Player player, Portal portal, Runnable destroyAction, LanguageManager languageManager, StargateEconomyAPI economyManager) Destroys a portal if the entity has permission and can pay any feesPortalPermissionHelper.getOpenPermissions(RealPortal entrance, Portal exit, org.bukkit.entity.Entity actor) Generate open permissions