public enum Relation extends java.lang.Enum<Relation> implements Permissable
Modifier and Type | Method and Description |
---|---|
org.bukkit.inventory.ItemStack |
buildItem() |
boolean |
confDenyBuild(boolean online) |
boolean |
confDenyUseage() |
boolean |
confPainBuild(boolean online) |
static Relation |
fromString(java.lang.String s) |
org.bukkit.ChatColor |
getColor() |
java.lang.String |
getPluralTranslation() |
double |
getRelationCost() |
java.lang.String |
getTranslation() |
boolean |
isAlly() |
boolean |
isAtLeast(Relation relation) |
boolean |
isAtMost(Relation relation) |
boolean |
isEnemy() |
boolean |
isMember() |
boolean |
isNeutral() |
boolean |
isTruce() |
java.lang.String |
replacePlaceholders(java.lang.String string) |
java.lang.String |
toString() |
static Relation |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
name
public static final Relation MEMBER
public static final Relation ALLY
public static final Relation TRUCE
public static final Relation NEUTRAL
public static final Relation ENEMY
public static Relation[] values()
for (Relation c : Relation.values()) System.out.println(c);
public static Relation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Relation fromString(java.lang.String s)
public java.lang.String toString()
toString
in class java.lang.Enum<Relation>
public java.lang.String getTranslation()
public java.lang.String getPluralTranslation()
public boolean isMember()
public boolean isAlly()
public boolean isTruce()
public boolean isNeutral()
public boolean isEnemy()
public boolean isAtLeast(Relation relation)
public boolean isAtMost(Relation relation)
public org.bukkit.ChatColor getColor()
public boolean confDenyBuild(boolean online)
public boolean confPainBuild(boolean online)
public boolean confDenyUseage()
public double getRelationCost()
public org.bukkit.inventory.ItemStack buildItem()
buildItem
in interface Permissable
public java.lang.String replacePlaceholders(java.lang.String string)
replacePlaceholders
in interface Permissable