Package com.palmergames.bukkit.towny
Record Class TownySettings.NationLevel
java.lang.Object
java.lang.Record
com.palmergames.bukkit.towny.TownySettings.NationLevel
- Enclosing class:
TownySettings
public static record TownySettings.NationLevel(String namePrefix, String namePostfix, String capitalPrefix, String capitalPostfix, String kingPrefix, String kingPostfix, int townBlockLimitBonus, double upkeepModifier, double nationTownUpkeepModifier, double peacefulCostMultiplier, double bankCapModifier, int nationZonesSize, int nationBonusOutpostLimit, int nationCapitalBonusOutpostLimit)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionNationLevel(String namePrefix, String namePostfix, String capitalPrefix, String capitalPostfix, String kingPrefix, String kingPostfix, int townBlockLimitBonus, double upkeepModifier, double nationTownUpkeepModifier, double peacefulCostMultiplier, double bankCapModifier, int nationZonesSize, int nationBonusOutpostLimit, int nationCapitalBonusOutpostLimit) Creates an instance of aNationLevelrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebankCapModifierrecord component.Returns the value of thecapitalPostfixrecord component.Returns the value of thecapitalPrefixrecord 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 thekingPostfixrecord component.Returns the value of thekingPrefixrecord component.Returns the value of thenamePostfixrecord component.Returns the value of thenamePrefixrecord component.intReturns the value of thenationBonusOutpostLimitrecord component.intReturns the value of thenationCapitalBonusOutpostLimitrecord component.doubleReturns the value of thenationTownUpkeepModifierrecord component.intReturns the value of thenationZonesSizerecord component.doubleReturns the value of thepeacefulCostMultiplierrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetownBlockLimitBonusrecord component.doubleReturns the value of theupkeepModifierrecord component.
-
Constructor Details
-
NationLevel
public NationLevel(String namePrefix, String namePostfix, String capitalPrefix, String capitalPostfix, String kingPrefix, String kingPostfix, int townBlockLimitBonus, double upkeepModifier, double nationTownUpkeepModifier, double peacefulCostMultiplier, double bankCapModifier, int nationZonesSize, int nationBonusOutpostLimit, int nationCapitalBonusOutpostLimit) Creates an instance of aNationLevelrecord class.- Parameters:
namePrefix- the value for thenamePrefixrecord componentnamePostfix- the value for thenamePostfixrecord componentcapitalPrefix- the value for thecapitalPrefixrecord componentcapitalPostfix- the value for thecapitalPostfixrecord componentkingPrefix- the value for thekingPrefixrecord componentkingPostfix- the value for thekingPostfixrecord componenttownBlockLimitBonus- the value for thetownBlockLimitBonusrecord componentupkeepModifier- the value for theupkeepModifierrecord componentnationTownUpkeepModifier- the value for thenationTownUpkeepModifierrecord componentpeacefulCostMultiplier- the value for thepeacefulCostMultiplierrecord componentbankCapModifier- the value for thebankCapModifierrecord componentnationZonesSize- the value for thenationZonesSizerecord componentnationBonusOutpostLimit- the value for thenationBonusOutpostLimitrecord componentnationCapitalBonusOutpostLimit- the value for thenationCapitalBonusOutpostLimitrecord 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
-
capitalPrefix
Returns the value of thecapitalPrefixrecord component.- Returns:
- the value of the
capitalPrefixrecord component
-
capitalPostfix
Returns the value of thecapitalPostfixrecord component.- Returns:
- the value of the
capitalPostfixrecord component
-
kingPrefix
Returns the value of thekingPrefixrecord component.- Returns:
- the value of the
kingPrefixrecord component
-
kingPostfix
Returns the value of thekingPostfixrecord component.- Returns:
- the value of the
kingPostfixrecord component
-
townBlockLimitBonus
public int townBlockLimitBonus()Returns the value of thetownBlockLimitBonusrecord component.- Returns:
- the value of the
townBlockLimitBonusrecord component
-
upkeepModifier
public double upkeepModifier()Returns the value of theupkeepModifierrecord component.- Returns:
- the value of the
upkeepModifierrecord component
-
nationTownUpkeepModifier
public double nationTownUpkeepModifier()Returns the value of thenationTownUpkeepModifierrecord component.- Returns:
- the value of the
nationTownUpkeepModifierrecord component
-
peacefulCostMultiplier
public double peacefulCostMultiplier()Returns the value of thepeacefulCostMultiplierrecord component.- Returns:
- the value of the
peacefulCostMultiplierrecord component
-
bankCapModifier
public double bankCapModifier()Returns the value of thebankCapModifierrecord component.- Returns:
- the value of the
bankCapModifierrecord component
-
nationZonesSize
public int nationZonesSize()Returns the value of thenationZonesSizerecord component.- Returns:
- the value of the
nationZonesSizerecord component
-
nationBonusOutpostLimit
public int nationBonusOutpostLimit()Returns the value of thenationBonusOutpostLimitrecord component.- Returns:
- the value of the
nationBonusOutpostLimitrecord component
-
nationCapitalBonusOutpostLimit
public int nationCapitalBonusOutpostLimit()Returns the value of thenationCapitalBonusOutpostLimitrecord component.- Returns:
- the value of the
nationCapitalBonusOutpostLimitrecord component
-