Interface PortalFlag
- All Known Implementing Classes:
CustomFlag,StargateFlag
public interface PortalFlag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PortalFlagA stargate which is always on and always openstatic final PortalFlagA stargate where the exit is on the opposite side of the signstatic final PortalFlagA stargate custom networkstatic final PortalFlagA stargate on the default networkstatic final PortalFlagA fixed stargate with only one destinationstatic final PortalFlagA stargate displaying all available destinations, regardless of whether they are available to the playerstatic final PortalFlagA free stargate, regardless of all set pricesstatic final PortalFlagA stargate which is hidden on the network for unprivileged users, except for the ownerstatic final PortalFlagA stargate with its network name hiddenstatic final PortalFlagAn across-server stargate using the new and better protocolstatic final PortalFlagA stargate whose opening can be entirely blocked by an iron doorstatic final PortalFlagAn across-server stargate using the legacy BungeeCord protocolstatic final PortalFlagA normal networked stargatestatic final PortalFlagA stargate without a sign.static final PortalFlagA stargate part of a personal networkstatic final PortalFlagA stargate which can only be used by the owner and unprivileged usersstatic final PortalFlagA random stargate which teleports to a random destination in its networkstatic final PortalFlagA silent stargate which doesn't output a teleportation messagestatic final PortalFlagA stargate on the terminal network NOT IMPLEMENTED AT THE MOMENT, temporary an internal flag (inaccessible) -
Method Summary
Modifier and TypeMethodDescriptioncharGets the character representing this portal flagbooleanbooleanisCustom()booleanGets 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
-