Class PriFlagGroup

java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.FlagGroup<PriFlag>
cn.lunadeer.dominion.api.dtos.flag.PriFlagGroup

public final class PriFlagGroup extends FlagGroup<PriFlag>
A type-safe group of privilege flags.
  • Constructor Details

    • PriFlagGroup

      public PriFlagGroup(@NotNull @NotNull String id, @NotNull @NotNull String displayName, @NotNull @NotNull String description, @NotNull @NotNull org.bukkit.Material material, @NotNull @NotNull Collection<? extends PriFlag> flags)
      Constructs a privilege flag group without a Dialog UI icon.
      Parameters:
      id - the stable group identifier
      displayName - the default display name
      description - the default description
      material - the material used in chest UIs
      flags - the initial privilege flags
    • PriFlagGroup

      public PriFlagGroup(@NotNull @NotNull String id, @NotNull @NotNull String displayName, @NotNull @NotNull String description, @NotNull @NotNull org.bukkit.Material material, @Nullable @Nullable String icon, @NotNull @NotNull Collection<? extends PriFlag> flags)
      Constructs a privilege flag group.
      Parameters:
      id - the stable group identifier
      displayName - the default display name
      description - the default description
      material - the material used in chest UIs
      icon - the Dialog UI sprite path, or null for no icon
      flags - the initial privilege flags
    • PriFlagGroup

      public PriFlagGroup(@NotNull @NotNull String id, @NotNull @NotNull String displayName, @NotNull @NotNull String description, @NotNull @NotNull org.bukkit.Material material)
      Constructs an empty privilege flag group.
      Parameters:
      id - the stable group identifier
      displayName - the default display name
      description - the default description
      material - the material used in chest UIs
  • Method Details

    • getLanguageNamespace

      @NotNull protected @NotNull String getLanguageNamespace()
      Gets the language-file namespace used by this group type.
      Specified by:
      getLanguageNamespace in class FlagGroup<PriFlag>
      Returns:
      the language namespace