Uses of Interface
org.sgrewritten.stargate.api.network.portal.Portal
Package
Description
-
Uses of Portal in org.sgrewritten.stargate.api
Modifier and TypeMethodDescriptionboolean
BlockHandlerInterface.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 locationvoid
BlockHandlerInterface.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
Modifier and TypeMethodDescriptionvoid
StorageAPI.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 positionvoid
StorageAPI.removeFlag
(Character flagChar, Portal portal, StorageType portalType) Remove a flag to a portal in the databasevoid
StorageAPI.removePortalFromStorage
(Portal portal) Removes a portal and its associated data from storagevoid
StorageAPI.setPortalMetaData
(Portal portal, String data, StorageType portalType) Set misc data of a portal -
Uses of Portal in org.sgrewritten.stargate.api.event.portal
Modifier and TypeMethodDescription@Nullable Portal
StargateOpenPortalEvent.getDestination()
StargateTeleportPortalEvent.getDestination()
Gets the destination portalStargateListPortalEvent.getListedPortal()
StargatePortalEvent.getPortal()
Gets the portal involved in this stargate eventModifier and TypeMethodDescriptionvoid
StargateOpenPortalEvent.setDestination
(Portal destination) ModifierConstructorDescriptionprotected
CancellableStargatePortalEvent
(@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
ModifierConstructorDescriptionAsyncStargateSendMessagePortalEvent
(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message) Instantiates a new stargate player eventprotected
StargateSendMessagePortalEvent
(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
Modifier and TypeMethodDescriptionBungeeManager.pullFromQueue
(String playerName) Gets a portal from the BungeeCord teleportation queue -
Uses of Portal in org.sgrewritten.stargate.api.network
Modifier and TypeMethodDescriptionGets the portal with the given nameModifier and TypeMethodDescriptionNetwork.getAllPortals()
Gets all portals belonging to this networkModifier and TypeMethodDescriptionvoid
Adds the given portal to this networkboolean
Network.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 portalvoid
Network.removePortal
(Portal portal) Removes the given portal from this networkvoid
void
RegistryAPI.unregisterPortal
(Portal portal) Removes the given portal from registry. -
Uses of Portal in org.sgrewritten.stargate.api.network.portal
Modifier and TypeInterfaceDescriptioninterface
A real portal with a physical sign that is located on this serverModifier and TypeMethodDescriptionvoid
RealPortal.doTeleport
(@NotNull org.bukkit.entity.Entity target, @Nullable Portal destination) Teleports the given entity to given destinationvoid
Open this portal without any checksvoid
Portal.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
Modifier and TypeMethodDescription@Nullable Portal
FixedBehavior.getDestination()
@Nullable Portal
LegacyBungeeBehavior.getDestination()
NetworkedBehavior.getDestination()
@Nullable Portal
PortalBehavior.getDestination()
@Nullable Portal
RandomBehavior.getDestination()
-
Uses of Portal in org.sgrewritten.stargate.api.network.portal.formatting
ModifierConstructorDescriptionPortalLine
(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
-
Uses of Portal in org.sgrewritten.stargate.api.permission
Modifier and TypeMethodDescriptionboolean
PermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) Check if entity has permission to open portal -
Uses of Portal in org.sgrewritten.stargate.database
Modifier and TypeMethodDescriptionvoid
SQLDatabase.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) void
SQLDatabase.removeFlag
(Character flagChar, Portal portal, StorageType portalType) void
SQLDatabase.removePortalFromStorage
(Portal portal) void
SQLDatabase.setPortalMetaData
(Portal portal, String data, StorageType portalType) -
Uses of Portal in org.sgrewritten.stargate.economy
Modifier and TypeMethodDescriptionboolean
EconomyManager.chargePlayer
(org.bukkit.OfflinePlayer player, Portal origin, double amount) boolean
StargateEconomyAPI.chargePlayer
(org.bukkit.OfflinePlayer player, Portal origin, double amount) Charges the given player for using the given portalboolean
EconomyManager.refundPlayer
(org.bukkit.OfflinePlayer player, Portal origin, double amount) boolean
StargateEconomyAPI.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
ModifierConstructorDescriptionLocalisedMessageException
(String localizedMessage, @Nullable Portal portal, @Nullable MessageType messageType) -
Uses of Portal in org.sgrewritten.stargate.manager
Modifier and TypeMethodDescriptionboolean
StargatePermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) boolean
UnrestrictedPermissionManager.hasOpenPermissions
(RealPortal entrance, Portal exit) -
Uses of Portal in org.sgrewritten.stargate.network
Modifier and TypeMethodDescriptionvoid
boolean
StargateNetwork.canSeePortal
(Portal portalToSee, Portal origin, org.bukkit.entity.Player player) StargateNetwork.getAvailablePortals
(org.bukkit.entity.Player player, Portal requester) void
StargateNetwork.removePortal
(Portal portal) void
void
StargateRegistry.unregisterPortal
(Portal portal) -
Uses of Portal in org.sgrewritten.stargate.network.portal
Modifier and TypeClassDescriptionclass
A virtual portal compatible with the legacy BungeeCord behaviorclass
An abstract implementation of a real portalclass
A virtual representation of a portal on a different serverModifier and TypeMethodDescriptionvoid
StargatePortal.doTeleport
(@NotNull org.bukkit.entity.Entity target, @Nullable Portal destination) static GlobalPortalId
GlobalPortalId.getFromPortal
(Portal portal) Gets a global portal id from the given portalvoid
void
StargatePortal.overrideDestination
(Portal destination) void
VirtualPortal.overrideDestination
(Portal destination) -
Uses of Portal in org.sgrewritten.stargate.util
Modifier and TypeMethodDescriptionLegacyPortalStorageLoader.loadPortalsFromStorage
(File dir, String defaultNetworkName, StargateAPI stargateAPI) Loads legacy portals in .db files from the given folderModifier and TypeMethodDescriptionstatic String
BungeeHelper.generateJsonMessage
(Portal portal, StargateProtocolRequestType requestType) static String
BungeeHelper.generateLegacyTeleportMessage
(String player, Portal portal) static String
BungeeHelper.generateTeleportJsonMessage
(String player, Portal portal) static void
MessageUtils.sendMessageFromPortal
(Portal portal, @Nullable org.bukkit.entity.Entity receiver, String message, MessageType type) Send a message from this portal; triggers aStargateSendMessagePortalEvent
static boolean
EconomyHelper.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
Modifier and TypeMethodDescriptionstatic boolean
PortalDestructionHelper.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