Class EnvFlagGroup

java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.FlagGroup<EnvFlag>
cn.lunadeer.dominion.api.dtos.flag.EnvFlagGroup

public final class EnvFlagGroup extends FlagGroup<EnvFlag>
A type-safe group of environment flags.
  • Constructor Details

    • EnvFlagGroup

      public EnvFlagGroup(@NotNull @NotNull String id, @NotNull @NotNull String displayName, @NotNull @NotNull String description, @NotNull @NotNull org.bukkit.Material material, @NotNull @NotNull Collection<? extends EnvFlag> flags)
      Constructs an environment 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 environment flags
    • EnvFlagGroup

      public EnvFlagGroup(@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 EnvFlag> flags)
      Constructs an environment 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 environment flags
    • EnvFlagGroup

      public EnvFlagGroup(@NotNull @NotNull String id, @NotNull @NotNull String displayName, @NotNull @NotNull String description, @NotNull @NotNull org.bukkit.Material material)
      Constructs an empty environment 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<EnvFlag>
      Returns:
      the language namespace