Interface PortalFlag
- All Known Implementing Classes:
CustomFlag
,StargateFlag
public interface PortalFlag
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PortalFlag
A stargate which is always on and always openstatic final PortalFlag
A stargate where the exit is on the opposite side of the signstatic final PortalFlag
A stargate custom networkstatic final PortalFlag
A stargate on the default networkstatic final PortalFlag
A fixed stargate with only one destinationstatic final PortalFlag
A stargate displaying all available destinations, regardless of whether they are available to the playerstatic final PortalFlag
A free stargate, regardless of all set pricesstatic final PortalFlag
A stargate which is hidden on the network for unprivileged users, except for the ownerstatic final PortalFlag
A stargate with its network name hiddenstatic final PortalFlag
An across-server stargate using the new and better protocolstatic final PortalFlag
A stargate whose opening can be entirely blocked by an iron doorstatic final PortalFlag
An across-server stargate using the legacy BungeeCord protocolstatic final PortalFlag
A normal networked stargatestatic final PortalFlag
A stargate without a sign.static final PortalFlag
A stargate part of a personal networkstatic final PortalFlag
A stargate which can only be used by the owner and unprivileged usersstatic final PortalFlag
A random stargate which teleports to a random destination in its networkstatic final PortalFlag
A silent stargate which doesn't output a teleportation messagestatic final PortalFlag
A stargate on the terminal network NOT IMPLEMENTED AT THE MOMENT, temporary an internal flag (inaccessible) -
Method Summary
Modifier and TypeMethodDescriptionchar
Gets the character representing this portal flagboolean
boolean
isCustom()
boolean
Gets whether this flag is an internal flagstatic Set
<PortalFlag> parseFlags
(String flagString)
-
Field Details
-
RANDOM
A random stargate which teleports to a random destination in its network -
INTERSERVER
An across-server stargate using the new and better protocol -
ALWAYS_ON
A stargate which is always on and always open -
BACKWARDS
A stargate where the exit is on the opposite side of the sign -
HIDDEN
A stargate which is hidden on the network for unprivileged users, except for the owner -
PRIVATE
A stargate which can only be used by the owner and unprivileged users -
FORCE_SHOW
A stargate displaying all available destinations, regardless of whether they are available to the player -
HIDE_NETWORK
A stargate with its network name hidden -
FREE
A free stargate, regardless of all set prices -
LEGACY_INTERSERVER
An across-server stargate using the legacy BungeeCord protocol -
SILENT
A silent stargate which doesn't output a teleportation message -
NO_SIGN
A stargate without a sign.This is used by an official module, no implementation in Stargate-Core has been done
-
NETWORKED
A normal networked stargate -
FIXED
A fixed stargate with only one destination -
IRON_DOOR
A stargate whose opening can be entirely blocked by an iron door -
PERSONAL_NETWORK
A stargate part of a personal network -
DEFAULT_NETWORK
A stargate on the default network -
CUSTOM_NETWORK
A stargate custom network -
TERMINAL_NETWORK
A stargate on the terminal network NOT IMPLEMENTED AT THE MOMENT, temporary an internal flag (inaccessible)
-
-
Method Details
-
isBehaviorFlag
boolean isBehaviorFlag()- Returns:
Whether this flag relates to how a portal selects destinations
-
isInternalFlag
boolean isInternalFlag()Gets whether this flag is an internal flagUser specifiable flags are flags like backwards or always on, which the user specifies upon creation. Internal flags are the flags that are implicitly set to some value based on the Stargate created.
- Returns:
True if this flag is user specifiable
-
getCharacterRepresentation
char getCharacterRepresentation()Gets the character representing this portal flag- Returns:
The character representing this portal flag
-
isCustom
boolean isCustom()- Returns:
True if this flag is custom
-
parseFlags
- Parameters:
flagString
-The flag string to parse
- Returns:
A mutable set of PortalFlags
-