Class FlagGroup<T extends Flag>
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.FlagGroup<T>
- Type Parameters:
T- the supported flag type
- Direct Known Subclasses:
EnvFlagGroup,PriFlagGroup
A logical, ordered group of flags used for presentation and bulk editing.
Flag groups do not participate in permission evaluation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFlagGroup(@NotNull String id, @NotNull String displayName, @NotNull String description, @NotNull org.bukkit.Material material, @NotNull Class<T> flagType, @NotNull Collection<? extends T> flags) protectedFlagGroup(@NotNull String id, @NotNull String displayName, @NotNull String description, @NotNull org.bukkit.Material material, @Nullable String icon, @NotNull Class<T> flagType, @NotNull Collection<? extends T> flags) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsFlag(T flag) final @NotNull StringReturns the flags.yml key for this group's Dialog UI icon.@NotNull Stringfinal @NotNull StringReturns the language key used for this group's description.@NotNull Stringfinal @NotNull StringReturns the language key used for this group's display name.getFlags()@Nullable StringgetIcon()final @NotNull StringgetId()protected abstract @NotNull String@NotNull org.bukkit.MaterialbooleanremoveFlag(T flag) voidsetDescription(@NotNull String description) voidsetDisplayName(@NotNull String displayName) voidNull or blank means that this group has no Dialog UI icon.voidsetMaterial(@NotNull org.bukkit.Material material)
-
Constructor Details
-
FlagGroup
-
FlagGroup
-
-
Method Details
-
getId
-
getDisplayName
-
setDisplayName
-
getDescription
-
setDescription
-
getMaterial
@NotNull public @NotNull org.bukkit.Material getMaterial() -
setMaterial
public void setMaterial(@NotNull @NotNull org.bukkit.Material material) -
getIcon
-
setIcon
Null or blank means that this group has no Dialog UI icon. -
addFlag
-
removeFlag
-
containsFlag
-
getFlags
-
getFlagType
-
getDisplayNameKey
Returns the language key used for this group's display name.- Returns:
- language key for the display name
-
getDescriptionKey
Returns the language key used for this group's description.- Returns:
- language key for the description
-
getConfigurationDialogUiIconKey
Returns the flags.yml key for this group's Dialog UI icon. -
getLanguageNamespace
-