Class Settings.Corporation<T>
java.lang.Object
us.teaminceptus.novaconomy.api.settings.Settings.Corporation<T>
- All Implemented Interfaces:
Settings.NovaSetting<T>
- Enclosing class:
- Settings
Represents Corporation Settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Settings.Corporation<Boolean>Whether the Corporation has enabled corporation-only chat.static final Settings.Corporation<Corporation.JoinType>The privacy setting of a Corporation, determining how and whether businesses can join. -
Method Summary
Modifier and TypeMethodDescriptionFetches the default value of this setting.@Nullable SettingDescriptionFetches the description annotation on this NovaSetting.@NotNull StringFetches the display name of this setting in the current language.Fetches all of the possible values for this setting.getType()Fetches the type of setting this is.name()Fetches the identifier of this setting.parseValue(@NotNull String value) Parses a value from a string.static @Nullable Settings.Corporation<?>Fetches the Corporation Setting with the given name.static <T> Settings.Corporation<T>static @NotNull Settings.Corporation<?>[]values()Fetches an array of all of the Corporation Settings.
-
Field Details
-
JOIN_TYPE
The privacy setting of a Corporation, determining how and whether businesses can join. -
CHAT
Whether the Corporation has enabled corporation-only chat.
-
-
Method Details
-
getDefaultValue
Description copied from interface:Settings.NovaSettingFetches the default value of this setting.- Specified by:
getDefaultValuein interfaceSettings.NovaSetting<T>- Returns:
- default value of setting
-
name
Description copied from interface:Settings.NovaSettingFetches the identifier of this setting.- Specified by:
namein interfaceSettings.NovaSetting<T>- Returns:
- identifier of setting
-
getDisplayName
Description copied from interface:Settings.NovaSettingFetches the display name of this setting in the current language.- Specified by:
getDisplayNamein interfaceSettings.NovaSetting<T>- Returns:
- display name of setting
-
getDescription
Description copied from interface:Settings.NovaSettingFetches the description annotation on this NovaSetting. If no description is present, null is returned.- Specified by:
getDescriptionin interfaceSettings.NovaSetting<T>- Returns:
SettingDescriptionannotation
-
getPossibleValues
Description copied from interface:Settings.NovaSettingFetches all of the possible values for this setting.- Specified by:
getPossibleValuesin interfaceSettings.NovaSetting<T>- Returns:
- possible values of setting
-
values
Fetches an array of all of the Corporation Settings.- Returns:
- An array of all of the Corporation Settings.
-
valueOf
Fetches the Corporation Setting with the given name.- Parameters:
name- The name of the Corporation Setting.- Returns:
- Setting Found, or null if not found
-
valueOf
public static <T> Settings.Corporation<T> valueOf(@Nullable @Nullable String name, @Nullable @Nullable Class<T> clazz) - Type Parameters:
T- Type of the Setting- Parameters:
name- The name of the Corporation Setting.clazz- The type of the Corporation Setting.- Returns:
- Setting Found, or null if not found
-
getType
Description copied from interface:Settings.NovaSettingFetches the type of setting this is.- Specified by:
getTypein interfaceSettings.NovaSetting<T>- Returns:
- type of setting
-
parseValue
Description copied from interface:Settings.NovaSettingParses a value from a string.- Specified by:
parseValuein interfaceSettings.NovaSetting<T>- Parameters:
value- String to parse- Returns:
- Parsed value applicable to this setting
-