Class CustomFlag
java.lang.Object
org.sgrewritten.stargate.api.network.portal.flag.CustomFlag
- All Implemented Interfaces:
PortalFlag
-
Field Summary
Fields inherited from interface org.sgrewritten.stargate.api.network.portal.flag.PortalFlag
ALWAYS_ON, BACKWARDS, CUSTOM_NETWORK, DEFAULT_NETWORK, FIXED, FORCE_SHOW, FREE, HIDDEN, HIDE_NETWORK, INTERSERVER, IRON_DOOR, LEGACY_INTERSERVER, NETWORKED, NO_SIGN, PERSONAL_NETWORK, PRIVATE, RANDOM, SILENT, TERMINAL_NETWORK
-
Method Summary
Modifier and TypeMethodDescriptionboolean
char
Gets the character representing this portal flagstatic CustomFlag
getOrCreate
(char characterRepresentation) Get or create flagsint
hashCode()
boolean
boolean
isCustom()
boolean
Gets whether this flag is an internal flagmodify
(boolean internalFlag, boolean behaviorFlag) toString()
-
Method Details
-
isBehaviorFlag
public boolean isBehaviorFlag()- Specified by:
isBehaviorFlag
in interfacePortalFlag
- Returns:
Whether this flag relates to how a portal selects destinations
-
isInternalFlag
public boolean isInternalFlag()Description copied from interface:PortalFlag
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.
- Specified by:
isInternalFlag
in interfacePortalFlag
- Returns:
True if this flag is user specifiable
-
modify
- Parameters:
internalFlag
-Whether this flag should be hidden for the user
behaviorFlag
-Whether this is a selector/behavior flag
- Returns:
This flag
-
getCharacterRepresentation
public char getCharacterRepresentation()Description copied from interface:PortalFlag
Gets the character representing this portal flag- Specified by:
getCharacterRepresentation
in interfacePortalFlag
- Returns:
The character representing this portal flag
-
isCustom
public boolean isCustom()- Specified by:
isCustom
in interfacePortalFlag
- Returns:
True if this flag is custom
-
toString
-
equals
-
hashCode
public int hashCode() -
getOrCreate
Get or create flags- Parameters:
characterRepresentation
-The character representing the flag to get
- Returns:
The custom flag
-