Package com.massivecraft.factions.struct
Enum Relation
- java.lang.Object
-
- java.lang.Enum<Relation>
-
- com.massivecraft.factions.struct.Relation
-
- All Implemented Interfaces:
Permissable,java.io.Serializable,java.lang.Comparable<Relation>,java.lang.constant.Constable
public enum Relation extends java.lang.Enum<Relation> implements Permissable
-
-
Method Summary
Modifier and Type Method Description org.bukkit.inventory.ItemStackbuildItem()booleanconfDenyBuild(boolean online)booleanconfDenyUseage()booleanconfPainBuild(boolean online)static RelationfromString(java.lang.String s)org.bukkit.ChatColorgetColor()java.lang.StringgetPluralTranslation()doublegetRelationCost()java.lang.StringgetTranslation()booleanisAlly()booleanisAtLeast(Relation relation)booleanisAtMost(Relation relation)booleanisEnemy()booleanisMember()booleanisNeutral()booleanisTruce()java.lang.StringreplacePlaceholders(java.lang.String string)java.lang.StringtoString()static RelationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Relation[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface com.massivecraft.factions.zcore.fperms.Permissable
name
-
-
-
-
Method Detail
-
values
public static Relation[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Relation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
fromString
public static Relation fromString(java.lang.String s)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Relation>
-
getTranslation
public java.lang.String getTranslation()
-
getPluralTranslation
public java.lang.String getPluralTranslation()
-
isMember
public boolean isMember()
-
isAlly
public boolean isAlly()
-
isTruce
public boolean isTruce()
-
isNeutral
public boolean isNeutral()
-
isEnemy
public boolean isEnemy()
-
isAtLeast
public boolean isAtLeast(Relation relation)
-
isAtMost
public boolean isAtMost(Relation relation)
-
getColor
public org.bukkit.ChatColor getColor()
-
confDenyBuild
public boolean confDenyBuild(boolean online)
-
confPainBuild
public boolean confPainBuild(boolean online)
-
confDenyUseage
public boolean confDenyUseage()
-
getRelationCost
public double getRelationCost()
-
buildItem
public org.bukkit.inventory.ItemStack buildItem()
- Specified by:
buildItemin interfacePermissable
-
replacePlaceholders
public java.lang.String replacePlaceholders(java.lang.String string)
- Specified by:
replacePlaceholdersin interfacePermissable
-
-