Package dev.kitteh.factions.permissible
Enum Class Relation
- All Implemented Interfaces:
Permissible,Selectable,Serializable,Comparable<Relation>,Constable
@AvailableSince("4.0.0")
@NullMarked
public enum Relation
extends Enum<Relation>
implements Permissible
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.format.TextColorcolor()static RelationfromString(String s) intgetMax()Gets this enum name, in lower case, for fastest possible access forContexts.TERRITORY_RELATIONdoublebooleanisAlly()booleanbooleanbooleanisEnemy()booleanisMember()booleanbooleanisTruce()toString()static RelationReturns the enum constant of this class with the specified name.static Relation[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface dev.kitteh.factions.permissible.Permissible
name
-
Enum Constant Details
-
MEMBER
-
ALLY
-
TRUCE
-
NEUTRAL
-
ENEMY
-
-
Field Details
-
value
public final int value -
nicename
-
-
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
-
fromString
-
toString
-
translation
- Specified by:
translationin interfacePermissible
-
getPluralTranslation
-
isMember
public boolean isMember() -
isAlly
public boolean isAlly() -
isTruce
public boolean isTruce() -
isNeutral
public boolean isNeutral() -
isEnemy
public boolean isEnemy() -
isAtLeast
-
isAtMost
-
color
public net.kyori.adventure.text.format.TextColor color()- Specified by:
colorin interfacePermissible
-
getMax
public int getMax() -
getRelationCost
public double getRelationCost() -
getNameInASet
Gets this enum name, in lower case, for fastest possible access forContexts.TERRITORY_RELATION- Returns:
- an immutable set of just this name
-