public static enum BanList.Type extends java.lang.Enum<BanList.Type>
原文:Represents a ban-type that a BanList
may track.
译注:就是,这个封禁是根据IP封禁还是根据玩家名封禁
限定符和类型 | 方法和说明 |
---|---|
static BanList.Type |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static BanList.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BanList.Type NAME
public static final BanList.Type IP
public static BanList.Type[] values()
for (BanList.Type c : BanList.Type.values()) System.out.println(c);
public static BanList.Type valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值