public static enum Entity.FetchType extends java.lang.Enum<Entity.FetchType>
1.启动服务器的时候,初始化当前实体数据.
2.登录游戏的时候,初始化当前实体数据.
3.什么时候用,什么时候初始化当前实体数据.
| 限定符和类型 | 方法和说明 |
|---|---|
static Entity.FetchType |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static Entity.FetchType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final Entity.FetchType START
public static final Entity.FetchType USE
public static Entity.FetchType[] values()
for (Entity.FetchType c : Entity.FetchType.values()) System.out.println(c);
public static Entity.FetchType valueOf(java.lang.String name)
name - 要返回的枚举常量的名称。java.lang.IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值