Enum Class KonquestDiplomacyType
- All Implemented Interfaces:
Serializable
,Comparable<KonquestDiplomacyType>
,Constable
The types of kingdom diplomatic relationships in Konquest.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllied kingdoms can travel to each other's towns and may share a defense pact.Peaceful kingdoms cannot fight in towns and may allow pvp.Trading kingdoms allow villager trades and cannot pvp.Kingdoms at war can attack each other and capture towns. -
Method Summary
Modifier and TypeMethodDescriptionstatic KonquestDiplomacyType
Gets the default diplomatic stateorg.bukkit.Material
getIcon()
Gets the display icon material used in GUI menusstatic KonquestDiplomacyType
Returns the enum constant of this class with the specified name.static KonquestDiplomacyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WAR
Kingdoms at war can attack each other and capture towns. -
PEACE
Peaceful kingdoms cannot fight in towns and may allow pvp. -
TRADE
Trading kingdoms allow villager trades and cannot pvp. -
ALLIANCE
Allied kingdoms can travel to each other's towns and may share a defense pact.
-
-
Method Details
-
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
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 nameNullPointerException
- 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
Gets the default diplomatic state- Returns:
- The default state
-