Class EnvFlagGroup
java.lang.Object
cn.lunadeer.dominion.api.dtos.flag.FlagGroup<EnvFlag>
cn.lunadeer.dominion.api.dtos.flag.EnvFlagGroup
A type-safe group of environment flags.
-
Constructor Summary
ConstructorsConstructorDescriptionEnvFlagGroup(@NotNull String id, @NotNull String displayName, @NotNull String description, @NotNull org.bukkit.Material material) Constructs an empty environment flag group.EnvFlagGroup(@NotNull String id, @NotNull String displayName, @NotNull String description, @NotNull org.bukkit.Material material, @NotNull Collection<? extends EnvFlag> flags) Constructs an environment flag group without a Dialog UI icon.EnvFlagGroup(@NotNull String id, @NotNull String displayName, @NotNull String description, @NotNull org.bukkit.Material material, @Nullable String icon, @NotNull Collection<? extends EnvFlag> flags) Constructs an environment flag group. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull StringGets the language-file namespace used by this group type.Methods inherited from class cn.lunadeer.dominion.api.dtos.flag.FlagGroup
addFlag, containsFlag, getConfigurationDialogUiIconKey, getDescription, getDescriptionKey, getDisplayName, getDisplayNameKey, getFlags, getFlagType, getIcon, getId, getMaterial, removeFlag, setDescription, setDisplayName, setIcon, setMaterial
-
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 identifierdisplayName- the default display namedescription- the default descriptionmaterial- the material used in chest UIsflags- 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 identifierdisplayName- the default display namedescription- the default descriptionmaterial- the material used in chest UIsicon- the Dialog UI sprite path, ornullfor no iconflags- 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 identifierdisplayName- the default display namedescription- the default descriptionmaterial- the material used in chest UIs
-
-
Method Details
-
getLanguageNamespace
Gets the language-file namespace used by this group type.- Specified by:
getLanguageNamespacein classFlagGroup<EnvFlag>- Returns:
- the language namespace
-