Class Settings.Business<T>
java.lang.Object
us.teaminceptus.novaconomy.api.settings.Settings.Business<T>
- All Implemented Interfaces:
Settings.NovaSetting<T>
- Enclosing class:
- Settings
Represents Business Settings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Settings.Business<Boolean>Whether the Business will automatically deposit 15% of its earnings into its advertising balance.static final Settings.Business<Boolean>Whether the Business allows advertising from other businesses.static final Settings.Business<Boolean>Whether this business is discoverable.static final Settings.Business<Boolean>Whether consumers of the Business can teleport to its home.static final Settings.Business<Boolean>Whether the owner of the Business is public.static final Settings.Business<Boolean>Whether the consumers of the Business can see the rating.static final Settings.Business<Boolean>Whether the statistics of the Business are public.static final Settings.Business<BusinessSupplyEvent.Interval>The interval at which the Business will supply its stock from its supply locations. -
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.Business<?>Fetches the Corporation Setting with the given name.static <T> Settings.Business<T>static @NotNull Settings.Business<?>[]values()Fetches an array of all of the Corporation Settings.
-
Field Details
-
PUBLIC_OWNER
Whether the owner of the Business is public. -
PUBLIC_STATISTICS
Whether the statistics of the Business are public. -
PUBLIC_HOME
Whether consumers of the Business can teleport to its home. -
PUBLIC_RATING
Whether the consumers of the Business can see the rating. -
PUBLIC_DISCOVERY
Whether this business is discoverable. -
AUTOMATIC_DEPOSIT
Whether the Business will automatically deposit 15% of its earnings into its advertising balance. -
EXTERNAL_ADVERTISEMENT
Whether the Business allows advertising from other businesses. -
SUPPLY_INTERVAL
The interval at which the Business will supply its stock from its supply locations.- See Also:
-
-
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.Business<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
-