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) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    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 a NationLevel record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the value of the bankCapModifier record component.
    Returns the value of the capitalPostfix record component.
    Returns the value of the capitalPrefix record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the kingPostfix record component.
    Returns the value of the kingPrefix record component.
    Returns the value of the namePostfix record component.
    Returns the value of the namePrefix record component.
    int
    Returns the value of the nationBonusOutpostLimit record component.
    double
    Returns the value of the nationTownUpkeepModifier record component.
    int
    Returns the value of the nationZonesSize record component.
    double
    Returns the value of the peacefulCostMultiplier record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the townBlockLimitBonus record component.
    double
    Returns the value of the upkeepModifier record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a NationLevel record class.
      Parameters:
      namePrefix - the value for the namePrefix record component
      namePostfix - the value for the namePostfix record component
      capitalPrefix - the value for the capitalPrefix record component
      capitalPostfix - the value for the capitalPostfix record component
      kingPrefix - the value for the kingPrefix record component
      kingPostfix - the value for the kingPostfix record component
      townBlockLimitBonus - the value for the townBlockLimitBonus record component
      upkeepModifier - the value for the upkeepModifier record component
      nationTownUpkeepModifier - the value for the nationTownUpkeepModifier record component
      peacefulCostMultiplier - the value for the peacefulCostMultiplier record component
      bankCapModifier - the value for the bankCapModifier record component
      nationZonesSize - the value for the nationZonesSize record component
      nationBonusOutpostLimit - the value for the nationBonusOutpostLimit record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • namePrefix

      public String namePrefix()
      Returns the value of the namePrefix record component.
      Returns:
      the value of the namePrefix record component
    • namePostfix

      public String namePostfix()
      Returns the value of the namePostfix record component.
      Returns:
      the value of the namePostfix record component
    • capitalPrefix

      public String capitalPrefix()
      Returns the value of the capitalPrefix record component.
      Returns:
      the value of the capitalPrefix record component
    • capitalPostfix

      public String capitalPostfix()
      Returns the value of the capitalPostfix record component.
      Returns:
      the value of the capitalPostfix record component
    • kingPrefix

      public String kingPrefix()
      Returns the value of the kingPrefix record component.
      Returns:
      the value of the kingPrefix record component
    • kingPostfix

      public String kingPostfix()
      Returns the value of the kingPostfix record component.
      Returns:
      the value of the kingPostfix record component
    • townBlockLimitBonus

      public int townBlockLimitBonus()
      Returns the value of the townBlockLimitBonus record component.
      Returns:
      the value of the townBlockLimitBonus record component
    • upkeepModifier

      public double upkeepModifier()
      Returns the value of the upkeepModifier record component.
      Returns:
      the value of the upkeepModifier record component
    • nationTownUpkeepModifier

      public double nationTownUpkeepModifier()
      Returns the value of the nationTownUpkeepModifier record component.
      Returns:
      the value of the nationTownUpkeepModifier record component
    • peacefulCostMultiplier

      public double peacefulCostMultiplier()
      Returns the value of the peacefulCostMultiplier record component.
      Returns:
      the value of the peacefulCostMultiplier record component
    • bankCapModifier

      public double bankCapModifier()
      Returns the value of the bankCapModifier record component.
      Returns:
      the value of the bankCapModifier record component
    • nationZonesSize

      public int nationZonesSize()
      Returns the value of the nationZonesSize record component.
      Returns:
      the value of the nationZonesSize record component
    • nationBonusOutpostLimit

      public int nationBonusOutpostLimit()
      Returns the value of the nationBonusOutpostLimit record component.
      Returns:
      the value of the nationBonusOutpostLimit record component