Package com.palmergames.bukkit.towny
Record Class TownySettings.TownLevel
java.lang.Object
java.lang.Record
com.palmergames.bukkit.towny.TownySettings.TownLevel
- Enclosing class:
TownySettings
public static record TownySettings.TownLevel(String namePrefix, String namePostfix, String mayorPrefix, String mayorPostfix, int townBlockLimit, double upkeepModifier, double peacefulCostMultiplier, int townOutpostLimit, int townBlockBuyBonusLimit, double debtCapModifier, double resourceProductionModifier, double bankCapModifier, Map<String,Integer> townBlockTypeLimits)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTownLevel(String namePrefix, String namePostfix, String mayorPrefix, String mayorPostfix, int townBlockLimit, double upkeepModifier, double peacefulCostMultiplier, int townOutpostLimit, int townBlockBuyBonusLimit, double debtCapModifier, double resourceProductionModifier, double bankCapModifier, Map<String, Integer> townBlockTypeLimits) Creates an instance of aTownLevelrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebankCapModifierrecord component.doubleReturns the value of thedebtCapModifierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themayorPostfixrecord component.Returns the value of themayorPrefixrecord component.Returns the value of thenamePostfixrecord component.Returns the value of thenamePrefixrecord component.doubleReturns the value of thepeacefulCostMultiplierrecord component.doubleReturns the value of theresourceProductionModifierrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetownBlockBuyBonusLimitrecord component.intReturns the value of thetownBlockLimitrecord component.Returns the value of thetownBlockTypeLimitsrecord component.intReturns the value of thetownOutpostLimitrecord component.doubleReturns the value of theupkeepModifierrecord component.
-
Constructor Details
-
TownLevel
public TownLevel(String namePrefix, String namePostfix, String mayorPrefix, String mayorPostfix, int townBlockLimit, double upkeepModifier, double peacefulCostMultiplier, int townOutpostLimit, int townBlockBuyBonusLimit, double debtCapModifier, double resourceProductionModifier, double bankCapModifier, Map<String, Integer> townBlockTypeLimits) Creates an instance of aTownLevelrecord class.- Parameters:
namePrefix- the value for thenamePrefixrecord componentnamePostfix- the value for thenamePostfixrecord componentmayorPrefix- the value for themayorPrefixrecord componentmayorPostfix- the value for themayorPostfixrecord componenttownBlockLimit- the value for thetownBlockLimitrecord componentupkeepModifier- the value for theupkeepModifierrecord componentpeacefulCostMultiplier- the value for thepeacefulCostMultiplierrecord componenttownOutpostLimit- the value for thetownOutpostLimitrecord componenttownBlockBuyBonusLimit- the value for thetownBlockBuyBonusLimitrecord componentdebtCapModifier- the value for thedebtCapModifierrecord componentresourceProductionModifier- the value for theresourceProductionModifierrecord componentbankCapModifier- the value for thebankCapModifierrecord componenttownBlockTypeLimits- the value for thetownBlockTypeLimitsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
namePrefix
Returns the value of thenamePrefixrecord component.- Returns:
- the value of the
namePrefixrecord component
-
namePostfix
Returns the value of thenamePostfixrecord component.- Returns:
- the value of the
namePostfixrecord component
-
mayorPrefix
Returns the value of themayorPrefixrecord component.- Returns:
- the value of the
mayorPrefixrecord component
-
mayorPostfix
Returns the value of themayorPostfixrecord component.- Returns:
- the value of the
mayorPostfixrecord component
-
townBlockLimit
public int townBlockLimit()Returns the value of thetownBlockLimitrecord component.- Returns:
- the value of the
townBlockLimitrecord component
-
upkeepModifier
public double upkeepModifier()Returns the value of theupkeepModifierrecord component.- Returns:
- the value of the
upkeepModifierrecord component
-
peacefulCostMultiplier
public double peacefulCostMultiplier()Returns the value of thepeacefulCostMultiplierrecord component.- Returns:
- the value of the
peacefulCostMultiplierrecord component
-
townOutpostLimit
public int townOutpostLimit()Returns the value of thetownOutpostLimitrecord component.- Returns:
- the value of the
townOutpostLimitrecord component
-
townBlockBuyBonusLimit
public int townBlockBuyBonusLimit()Returns the value of thetownBlockBuyBonusLimitrecord component.- Returns:
- the value of the
townBlockBuyBonusLimitrecord component
-
debtCapModifier
public double debtCapModifier()Returns the value of thedebtCapModifierrecord component.- Returns:
- the value of the
debtCapModifierrecord component
-
resourceProductionModifier
public double resourceProductionModifier()Returns the value of theresourceProductionModifierrecord component.- Returns:
- the value of the
resourceProductionModifierrecord component
-
bankCapModifier
public double bankCapModifier()Returns the value of thebankCapModifierrecord component.- Returns:
- the value of the
bankCapModifierrecord component
-
townBlockTypeLimits
Returns the value of thetownBlockTypeLimitsrecord component.- Returns:
- the value of the
townBlockTypeLimitsrecord component
-