Interface FlagDefinition
- All Superinterfaces:
CatalogType,PermissionDefinition
Represents a flag definition which can hold one or more
Flag permissions.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FlagDefinition.Builderbuilder()Gets a new claim builder instance forFlagDefinition.Builder.Gets the default value.Gets theFlagDataassociated with this definition.getFlags()Gets a list ofFlag's associated with this definition.voidsetDefaultValue(Tristate value) Sets the default value of definition.Methods inherited from interface com.griefdefender.api.CatalogType
getId, getNameMethods inherited from interface com.griefdefender.api.permission.PermissionDefinition
getContexts, getDescription, getFriendlyDescription, getGroupDescription, getGroupName, getIcon, getPresetName, getSubject, hasOwnerMode, isAdmin, isEnabled, setIcon, setIsEnabled
-
Method Details
-
getDefaultValue
Tristate getDefaultValue()Gets the default value.- Returns:
- The default value
-
getFlagData
Gets theFlagDataassociated with this definition.- Returns:
- The flag data
-
getFlags
Gets a list ofFlag's associated with this definition.- Returns:
- The list of flags
-
setDefaultValue
Sets the default value of definition.- Parameters:
value- The default value
-
builder
Gets a new claim builder instance forFlagDefinition.Builder.- Returns:
- A new claim builder instance
-