Package net.luckperms.api.query
Enum Flag
- java.lang.Object
-
- java.lang.Enum<Flag>
-
- net.luckperms.api.query.Flag
-
- All Implemented Interfaces:
Serializable,Comparable<Flag>
public enum Flag extends Enum<Flag>
The flags which can be set for a query.By default (in places like new instances of
QueryOptions.BuilderandQueryOptions.defaultContextualOptions()), allFlags are set to true.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLY_INHERITANCE_NODES_WITHOUT_SERVER_CONTEXTIf global or non-server-specific group memberships should be appliedAPPLY_INHERITANCE_NODES_WITHOUT_WORLD_CONTEXTIf global or non-world-specific group memberships should be appliedINCLUDE_NODES_WITHOUT_SERVER_CONTEXTIf global or non-server-specific nodes should be appliedINCLUDE_NODES_WITHOUT_WORLD_CONTEXTIf global or non-world-specific nodes should be appliedRESOLVE_INHERITANCEIf parent groups should be resolved
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlagvalueOf(String name)Returns the enum constant of this type with the specified name.static Flag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESOLVE_INHERITANCE
public static final Flag RESOLVE_INHERITANCE
If parent groups should be resolved
-
INCLUDE_NODES_WITHOUT_SERVER_CONTEXT
public static final Flag INCLUDE_NODES_WITHOUT_SERVER_CONTEXT
If global or non-server-specific nodes should be applied
-
INCLUDE_NODES_WITHOUT_WORLD_CONTEXT
public static final Flag INCLUDE_NODES_WITHOUT_WORLD_CONTEXT
If global or non-world-specific nodes should be applied
-
APPLY_INHERITANCE_NODES_WITHOUT_SERVER_CONTEXT
public static final Flag APPLY_INHERITANCE_NODES_WITHOUT_SERVER_CONTEXT
If global or non-server-specific group memberships should be applied
-
APPLY_INHERITANCE_NODES_WITHOUT_WORLD_CONTEXT
public static final Flag APPLY_INHERITANCE_NODES_WITHOUT_WORLD_CONTEXT
If global or non-world-specific group memberships should be applied
-
-
Method Detail
-
values
public static Flag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Flag c : Flag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Flag valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-