|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Attribute>
com.amoebaman.kitmaster.objects.Attribute
public enum Attribute
| Enum Constant Summary | |
|---|---|
CASH
Attribute that determines the amount of currency which will be given as part of the kit. |
|
CLEAR_ALL
Attribute that amounts to a blanket application of all other "CLEAR" attributes |
|
CLEAR_EFFECTS
Attribute that determines whether the kit will clear all potion effects before it is given. |
|
CLEAR_INVENTORY
Attribute that determines whether the kit will clear the player's inventory before it is given. |
|
CLEAR_PERMISSIONS
Attribute that determines whether the kit will remove all previously kit-applied permissions before it is given. |
|
COST
Attribute that determines the effective cost of the kit. |
|
GLOBAL_TIMEOUT
Attribute that determines whether the kit will apply the same timeout to all players on the server. |
|
IDENTIFIER
An identifier string used exclusively by third-party plugins to identify kits by means other than their names. |
|
INFINITE_EFFECTS
Attribute that determines whether the kit will infinitely renew its potion effects (until cleared). |
|
INHERIT_PARENT_PERMS
Attribute that determines whether the kit will consider its parent's permissions to apply to itself. |
|
PARENT
Attribute that links the kit to its intended parent by the parent's name. |
|
REQUIRE_PARENT_PERMS
Attribute that determines whether the kit will require its parent's permissions as a supplement to its own. |
|
SHOW_IN_LIST
Attribute that determines whether the kit will show in the /kitlist list. |
|
SUPPRESS_LOAD_NOTIFICATION
Attribute that determines whether the kit should suppress its notification when loaded. |
|
TIMEOUT
Attribute that defines the timeout of this kit in seconds |
|
UPGRADE_PARENT
Attribute that determines whether the kit will attempt to blend its items and effects into those of its parents. |
|
| Field Summary | |
|---|---|
java.lang.Class<?> |
clazz
The class type that this attribute is defined by |
java.lang.Object |
def
The default value of this attribute if it is not explicitly defined in the kit's YAML file |
java.lang.String |
path
The YAML path that is used to define this attribute when loading kits |
| Method Summary | |
|---|---|
static Attribute |
matchName(java.lang.String str)
Attempts to grab the Attribute that matches the given String. |
java.lang.String |
toString()
Gets a more user-friendly version of this Attribute's enumerated name. |
static Attribute |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Attribute[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Attribute TIMEOUT
public static final Attribute GLOBAL_TIMEOUT
public static final Attribute INFINITE_EFFECTS
public static final Attribute CLEAR_ALL
public static final Attribute CLEAR_INVENTORY
public static final Attribute CLEAR_EFFECTS
public static final Attribute CLEAR_PERMISSIONS
public static final Attribute PARENT
public static final Attribute UPGRADE_PARENT
public static final Attribute REQUIRE_PARENT_PERMS
public static final Attribute INHERIT_PARENT_PERMS
public static final Attribute COST
public static final Attribute CASH
public static final Attribute SHOW_IN_LIST
public static final Attribute SUPPRESS_LOAD_NOTIFICATION
public static final Attribute IDENTIFIER
| Field Detail |
|---|
public final java.lang.Class<?> clazz
public final java.lang.String path
public final java.lang.Object def
| Method Detail |
|---|
public static Attribute[] values()
for (Attribute c : Attribute.values()) System.out.println(c);
public static Attribute 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 name
java.lang.NullPointerException - if the argument is nullpublic java.lang.String toString()
toString in class java.lang.Enum<Attribute>public static Attribute matchName(java.lang.String str)
Attribute that matches the given String.
str - The name of the desired attribute.
Attribute, or null if no match is found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||