Enum Class KonquestDiplomacyType

java.lang.Object
java.lang.Enum<KonquestDiplomacyType>
com.github.rumsfield.konquest.api.model.KonquestDiplomacyType
All Implemented Interfaces:
Serializable, Comparable<KonquestDiplomacyType>, Constable

public enum KonquestDiplomacyType extends Enum<KonquestDiplomacyType>
The types of kingdom diplomatic relationships in Konquest.
  • Enum Constant Details

    • WAR

      public static final KonquestDiplomacyType WAR
      Kingdoms at war can attack each other and capture towns.
    • PEACE

      public static final KonquestDiplomacyType PEACE
      Peaceful kingdoms cannot fight in towns and may allow pvp.
    • TRADE

      public static final KonquestDiplomacyType TRADE
      Trading kingdoms allow villager trades and cannot pvp.
    • ALLIANCE

      public static final KonquestDiplomacyType ALLIANCE
      Allied kingdoms can travel to each other's towns and may share a defense pact.
  • Method Details

    • values

      public static KonquestDiplomacyType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static KonquestDiplomacyType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getIcon

      public org.bukkit.Material getIcon()
      Gets the display icon material used in GUI menus
      Returns:
      The icon material
    • getDefault

      public static KonquestDiplomacyType getDefault()
      Gets the default diplomatic state
      Returns:
      The default state