Package com.palmergames.bukkit.towny
Record Class TownySettings.NationLevel
java.lang.Object
java.lang.Record
com.palmergames.bukkit.towny.TownySettings.NationLevel
- Enclosing class:
- TownySettings
@Desugar
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)
extends Record
-
Constructor Summary
ConstructorDescriptionNationLevel
(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) Creates an instance of aNationLevel
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Returns the value of thebankCapModifier
record component.Returns the value of thecapitalPostfix
record component.Returns the value of thecapitalPrefix
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thekingPostfix
record component.Returns the value of thekingPrefix
record component.Returns the value of thenamePostfix
record component.Returns the value of thenamePrefix
record component.int
Returns the value of thenationBonusOutpostLimit
record component.double
Returns the value of thenationTownUpkeepModifier
record component.int
Returns the value of thenationZonesSize
record component.double
Returns the value of thepeacefulCostMultiplier
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of thetownBlockLimitBonus
record component.double
Returns the value of theupkeepModifier
record 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) Creates an instance of aNationLevel
record class.- Parameters:
namePrefix
- the value for thenamePrefix
record componentnamePostfix
- the value for thenamePostfix
record componentcapitalPrefix
- the value for thecapitalPrefix
record componentcapitalPostfix
- the value for thecapitalPostfix
record componentkingPrefix
- the value for thekingPrefix
record componentkingPostfix
- the value for thekingPostfix
record componenttownBlockLimitBonus
- the value for thetownBlockLimitBonus
record componentupkeepModifier
- the value for theupkeepModifier
record componentnationTownUpkeepModifier
- the value for thenationTownUpkeepModifier
record componentpeacefulCostMultiplier
- the value for thepeacefulCostMultiplier
record componentbankCapModifier
- the value for thebankCapModifier
record componentnationZonesSize
- the value for thenationZonesSize
record componentnationBonusOutpostLimit
- the value for thenationBonusOutpostLimit
record 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 thenamePrefix
record component.- Returns:
- the value of the
namePrefix
record component
-
namePostfix
Returns the value of thenamePostfix
record component.- Returns:
- the value of the
namePostfix
record component
-
capitalPrefix
Returns the value of thecapitalPrefix
record component.- Returns:
- the value of the
capitalPrefix
record component
-
capitalPostfix
Returns the value of thecapitalPostfix
record component.- Returns:
- the value of the
capitalPostfix
record component
-
kingPrefix
Returns the value of thekingPrefix
record component.- Returns:
- the value of the
kingPrefix
record component
-
kingPostfix
Returns the value of thekingPostfix
record component.- Returns:
- the value of the
kingPostfix
record component
-
townBlockLimitBonus
public int townBlockLimitBonus()Returns the value of thetownBlockLimitBonus
record component.- Returns:
- the value of the
townBlockLimitBonus
record component
-
upkeepModifier
public double upkeepModifier()Returns the value of theupkeepModifier
record component.- Returns:
- the value of the
upkeepModifier
record component
-
nationTownUpkeepModifier
public double nationTownUpkeepModifier()Returns the value of thenationTownUpkeepModifier
record component.- Returns:
- the value of the
nationTownUpkeepModifier
record component
-
peacefulCostMultiplier
public double peacefulCostMultiplier()Returns the value of thepeacefulCostMultiplier
record component.- Returns:
- the value of the
peacefulCostMultiplier
record component
-
bankCapModifier
public double bankCapModifier()Returns the value of thebankCapModifier
record component.- Returns:
- the value of the
bankCapModifier
record component
-
nationZonesSize
public int nationZonesSize()Returns the value of thenationZonesSize
record component.- Returns:
- the value of the
nationZonesSize
record component
-
nationBonusOutpostLimit
public int nationBonusOutpostLimit()Returns the value of thenationBonusOutpostLimit
record component.- Returns:
- the value of the
nationBonusOutpostLimit
record component
-