Uses of Interface
org.sgrewritten.stargate.api.network.portal.flag.PortalFlag
Package
Description
-
Uses of PortalFlag in org.sgrewritten.stargate.api
Modifier and TypeMethodDescriptionboolean
BlockHandlerResolver.hasRegisteredCustomFlag
(PortalFlag portalFlag) -
Uses of PortalFlag in org.sgrewritten.stargate.api.event.portal
Modifier and TypeMethodDescriptionvoid
StargateCreatePortalEvent.addFlag
(PortalFlag flag) Add flag to related portal and save to storagevoid
StargateCreatePortalEvent.removeFlag
(PortalFlag flag) Remove flag to related portal and save to storage -
Uses of PortalFlag in org.sgrewritten.stargate.api.network
Modifier and TypeMethodDescriptionNetworkManager.createNetwork
(String targetNetwork, Set<PortalFlag> flags, boolean isForced) Creates a new network assigned to this registry@NotNull Network
NetworkManager.selectNetwork
(String name, PermissionManager permissionManager, org.bukkit.OfflinePlayer player, Set<PortalFlag> flags) Interprets a networkname and type, then selects it or creates it if it does not already exist -
Uses of PortalFlag in org.sgrewritten.stargate.api.network.portal
Modifier and TypeMethodDescriptionvoid
Portal.addFlag
(PortalFlag flag) Add a flag from this portal (does not do so to storage)boolean
Portal.hasFlag
(PortalFlag flag) Checks whether this portal has the given portal flag enabledvoid
Portal.removeFlag
(PortalFlag flag) Remove a flag from this portal (does not do so from storage) -
Uses of PortalFlag in org.sgrewritten.stargate.api.network.portal.behavior
-
Uses of PortalFlag in org.sgrewritten.stargate.api.network.portal.flag
Modifier and TypeClassDescriptionclass
enum
Represents a portal flag which defines an enabled behavior for a stargateModifier and TypeFieldDescriptionstatic final PortalFlag
PortalFlag.ALWAYS_ON
A stargate which is always on and always openstatic final PortalFlag
PortalFlag.BACKWARDS
A stargate where the exit is on the opposite side of the signstatic final PortalFlag
PortalFlag.CUSTOM_NETWORK
A stargate custom networkstatic final PortalFlag
PortalFlag.DEFAULT_NETWORK
A stargate on the default networkstatic final PortalFlag
PortalFlag.FIXED
A fixed stargate with only one destinationstatic final PortalFlag
PortalFlag.FORCE_SHOW
A stargate displaying all available destinations, regardless of whether they are available to the playerstatic final PortalFlag
PortalFlag.FREE
A free stargate, regardless of all set pricesstatic final PortalFlag
PortalFlag.HIDDEN
A stargate which is hidden on the network for unprivileged users, except for the ownerstatic final PortalFlag
PortalFlag.HIDE_NETWORK
A stargate with its network name hiddenstatic final PortalFlag
PortalFlag.INTERSERVER
An across-server stargate using the new and better protocolstatic final PortalFlag
PortalFlag.IRON_DOOR
A stargate whose opening can be entirely blocked by an iron doorstatic final PortalFlag
PortalFlag.LEGACY_INTERSERVER
An across-server stargate using the legacy BungeeCord protocolstatic final PortalFlag
PortalFlag.NETWORKED
A normal networked stargatestatic final PortalFlag
PortalFlag.NO_SIGN
A stargate without a sign.static final PortalFlag
PortalFlag.PERSONAL_NETWORK
A stargate part of a personal networkstatic final PortalFlag
PortalFlag.PRIVATE
A stargate which can only be used by the owner and unprivileged usersstatic final PortalFlag
PortalFlag.RANDOM
A random stargate which teleports to a random destination in its networkstatic final PortalFlag
PortalFlag.SILENT
A silent stargate which doesn't output a teleportation messagestatic final PortalFlag
PortalFlag.TERMINAL_NETWORK
A stargate on the terminal network NOT IMPLEMENTED AT THE MOMENT, temporary an internal flag (inaccessible)Modifier and TypeMethodDescriptionstatic Set
<PortalFlag> PortalFlag.parseFlags
(String flagString) -
Uses of PortalFlag in org.sgrewritten.stargate.api.permission
Modifier and TypeMethodDescriptionPermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) Gets all flags usable by the entityModifier and TypeMethodDescriptionPermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) Gets all flags usable by the entity -
Uses of PortalFlag in org.sgrewritten.stargate.manager
Modifier and TypeMethodDescriptionStargatePermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) UnrestrictedPermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) Modifier and TypeMethodDescriptionStargatePermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) UnrestrictedPermissionManager.returnDisallowedFlags
(Set<PortalFlag> flags) -
Uses of PortalFlag in org.sgrewritten.stargate.network
Modifier and TypeMethodDescriptionStargateNetworkManager.createNetwork
(String targetNetwork, Set<PortalFlag> flags, boolean isForced) static NetworkType
NetworkType.getNetworkTypeFromFlags
(Set<PortalFlag> flags) A method that infers a NetworkType from provided flags.static void
NetworkType.removeNetworkTypeRelatedFlags
(Set<PortalFlag> flags) A method to remove internal flags related to the network's type.@NotNull Network
StargateNetworkManager.selectNetwork
(String name, PermissionManager permissionManager, org.bukkit.OfflinePlayer player, Set<PortalFlag> flags) ModifierConstructorDescriptionStargateNetwork
(String name, Set<PortalFlag> flags, StorageType storageType) Instantiates a new network -
Uses of PortalFlag in org.sgrewritten.stargate.network.portal
Modifier and TypeFieldDescriptionstatic final Set
<PortalFlag> StargatePortal.allUsedFlags
Used for bStats metrics, this is every flag that has been used by all portalsModifier and TypeMethodDescriptionvoid
StargatePortal.addFlag
(PortalFlag flag) void
VirtualPortal.addFlag
(PortalFlag flag) boolean
StargatePortal.hasFlag
(PortalFlag flag) boolean
VirtualPortal.hasFlag
(PortalFlag flag) void
StargatePortal.removeFlag
(PortalFlag flag) void
VirtualPortal.removeFlag
(PortalFlag flag) ModifierConstructorDescriptionLegacyVirtualPortal
(String server, String name, Network network, Set<PortalFlag> flags, UUID ownerUUID) Instantiates a new legacy virtual portalStargatePortal
(Network network, String name, Set<PortalFlag> flags, GateAPI gate, UUID ownerUUID, LanguageManager languageManager, StargateEconomyAPI economyManager, @Nullable String metaData) Instantiates a new abstract portalVirtualPortal
(String server, String name, Network network, Set<PortalFlag> flags, UUID ownerUUID) Instantiates a new virtual portal -
Uses of PortalFlag in org.sgrewritten.stargate.network.portal.portaldata
Modifier and TypeMethodDescriptionPortalData.flags()
Returns the value of theflags
record component.ModifierConstructorDescriptionPortalData
(GateData gateData, String name, String networkName, String destination, Set<PortalFlag> flags, UUID ownerUUID, String serverUUID, String serverName, StorageType portalType, String metaData) Creates an instance of aPortalData
record class. -
Uses of PortalFlag in org.sgrewritten.stargate.util
Modifier and TypeMethodDescriptionstatic Set
<PortalFlag> LegacyDataHandler.parseFlags
(String[] splitLine) Parses the flags found in a portal fileModifier and TypeMethodDescriptionstatic String
TranslatableMessageFormatter.formatFlags
(String unformattedMessage, Set<PortalFlag> flags) Replaces the %flags% in a string with the given set of flags -
Uses of PortalFlag 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 String
PortalHelper.flagsToString
(Set<PortalFlag> flags) Gets the string representation of a set of portal flags