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 TypeMethodDescriptionbooleancharGets the character representing this portal flagstatic CustomFlaggetOrCreate(char characterRepresentation) Get or create flagsinthashCode()booleanbooleanisCustom()booleanGets whether this flag is an internal flagmodify(boolean internalFlag, boolean behaviorFlag) toString()
-
Method Details
-
isBehaviorFlag
public boolean isBehaviorFlag()- Specified by:
isBehaviorFlagin interfacePortalFlag- Returns:
Whether this flag relates to how a portal selects destinations
-
isInternalFlag
public boolean isInternalFlag()Description copied from interface:PortalFlagGets 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:
isInternalFlagin 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:PortalFlagGets the character representing this portal flag- Specified by:
getCharacterRepresentationin interfacePortalFlag- Returns:
The character representing this portal flag
-
isCustom
public boolean isCustom()- Specified by:
isCustomin 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
-