Class Business.Builder
java.lang.Object
us.teaminceptus.novaconomy.api.business.Business.Builder
- Enclosing class:
- Business
Represents a Business Builder
-
Method Summary
Modifier and TypeMethodDescriptionaddKeywords(@Nullable String... keywords) Adds an array of keywords to the Business.addKeywords(@Nullable Collection<String> keywords) Adds a collection of Keywords to the Business.@NotNull Businessbuild()Builds a Novaconomy Business.Sets the Business's Material Icon.setKeywords(@Nullable String... keywords) Sets the Business's Keywords.setKeywords(@Nullable Collection<String> keywords) Sets the Business's Keywords.Sets the Business Name.setOwner(@Nullable OfflinePlayer owner) Set the Business's Owner.setSetting(Settings.Business setting, boolean value) Sets a setting for the Business.
-
Method Details
-
setName
Sets the Business Name.- Parameters:
name- Name of Business- Returns:
- this builder, for chaining
-
setIcon
Sets the Business's Material Icon.- Parameters:
icon- Material Icon- Returns:
- this builder, for chaining
-
setOwner
Set the Business's Owner.- Parameters:
owner- Owner of Business- Returns:
- this builder, for chaining
-
setSetting
Sets a setting for the Business.- Parameters:
setting- Setting to setvalue- Value to set- Returns:
- this builder, for chaining
-
setKeywords
Sets the Business's Keywords.- Parameters:
keywords- Keywords to set- Returns:
- this builder, for chaining
-
setKeywords
Sets the Business's Keywords.- Parameters:
keywords- Keywords to set- Returns:
- this builder, for chaining
-
addKeywords
Adds an array of keywords to the Business.- Parameters:
keywords- Keywords to add- Returns:
- this builder, for chaining
-
addKeywords
Adds a collection of Keywords to the Business.- Parameters:
keywords- Keywords to add- Returns:
- this builder, for chaining
-
build
@NotNull public @NotNull Business build() throws IllegalArgumentException, UnsupportedOperationExceptionBuilds a Novaconomy Business.- Returns:
- Built Novaconomy Business
- Throws:
IllegalArgumentException- if a part is missing or is nullUnsupportedOperationException- if Business exists via name or owner
-