程序包 | 说明 |
---|---|
org.bukkit.event.entity |
限定符和类型 | 方法和说明 |
---|---|
CreatureSpawnEvent.SpawnReason |
CreatureSpawnEvent.getSpawnReason()
返回生物出生的原因
原文:
Gets the reason for why the creature is being spawned.
|
static CreatureSpawnEvent.SpawnReason |
CreatureSpawnEvent.SpawnReason.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static CreatureSpawnEvent.SpawnReason[] |
CreatureSpawnEvent.SpawnReason.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
构造器和说明 |
---|
CreatureSpawnEvent(LivingEntity spawnee,
CreatureSpawnEvent.SpawnReason spawnReason) |