Class Economy.Builder
java.lang.Object
us.teaminceptus.novaconomy.api.economy.Economy.Builder
- Enclosing class:
- Economy
Class used for Creating Economies
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds this economysetClickableReward(boolean clickableReward) Sets whether this Economy can be usedas a reward from host businesses when advertising.setConversionScale(double scale) Set the Conversion Scale (used to convert the value to other economies)setCustomModelData(int modelData) Sets the custom model data integer for this Economy.Set the Icon of this EconomySet the Icon of this EconomysetIncreaseNaturally(boolean increaseNaturally) Set whether or not this economy increases naturally (i.e.Set the name of this EconomysetSymbol(char symbol) Set the Symbol of this Economy
-
Method Details
-
setSymbol
Set the Symbol of this Economy- Parameters:
symbol- Symbol of this economy- Returns:
- Builder Class, for chaining
-
setName
Set the name of this Economy- Parameters:
name- Name of the Economy- Returns:
- Builder Class, for chaining
-
setIcon
Set the Icon of this Economy- Parameters:
iconM- Icon Material- Returns:
- Builder Class, for chaining
- See Also:
-
setIcon
Set the Icon of this Economy- Parameters:
stack-ItemStackfor this economy- Returns:
- Builder Class, for chaining
-
setIncreaseNaturally
Set whether or not this economy increases naturally (i.e. Increases from Mining)- Parameters:
increaseNaturally- Whether this economy should increase from Natural Causes- Returns:
- Builder Class, for chaining
-
setConversionScale
Set the Conversion Scale (used to convert the value to other economies)- Parameters:
scale- Scale of this economy- Returns:
- Builder Class, for chaining
- Throws:
IllegalArgumentException- if scale is not positive
-
setClickableReward
Sets whether this Economy can be usedas a reward from host businesses when advertising.- Parameters:
clickableReward- true if clickable reward, else false- Returns:
- Builder Class, for chaining
-
setCustomModelData
Sets the custom model data integer for this Economy.- Parameters:
modelData- Custom Model Data Integer- Returns:
- Builder Class, for chaining
-
build
Builds this economy- Returns:
- Created Economy
- Throws:
IllegalArgumentException- if name is null (icon's default is Gold Ingot)UnsupportedOperationException- if already exists or symbol is taken
-