枚举 CreatureSpawnEvent.SpawnReason
java.lang.Object
java.lang.Enum<CreatureSpawnEvent.SpawnReason>
org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason
- 所有已实现的接口:
Serializable
,Comparable<CreatureSpawnEvent.SpawnReason>
,Constable
- 封闭类:
- CreatureSpawnEvent
生成原因的枚举类.
-
嵌套类概要
从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量说明When a bee is released from a beehive/bee nestWhen an entity breeds to create a child, this also include Shulker and Allay当一个铁傀儡被建造时当雪人被建造时当一个凋零被建造时已过时。不再调用, 区块与已经存在的实体一同生成.When a creature is spawned by the "/summon" command当村民从僵尸状态痊愈时当生物被插件生成时实体由于其他原因而生成当生物由于投掷器丢出鸡蛋而生成时当一个实体溺亡而生成时When an Allay duplicate itself当生物由于蛋生成时 (不是刷怪蛋,是普通的鸡蛋)When a creature is spawned by an enchantment由于末影珍珠的使用而生成.由于苦力怕等发生爆炸产生效果云时/When eg an effect cloud is spawned as a result of a creeper explodingWhen an entity is shaking in Powder Snow and a new entity spawns.当一个僵尸感染一个村民时当实体因为乘骑而被生成时 (大多是蜘蛛骑士)当生物由于闪电而生成时When a tadpole converts to a frog当一个实体成为其他实体坐骑时 (大多数时是鸡骑士)自然生成当生物由于地狱传送门而生成时当豹猫为了照顾自己的孩子而出生时When an entity is spawned as part of a patrolWhen a piglin is converted to a zombified piglin.When a creature is spawned by a potion effect, for example:PotionType.OOZING
,PotionType.INFESTED
When an entity is spawned as part of a raid当一个实体请求支援时When an cow is spawned by shearing a mushroom cowWhen an entity is spawned as a result of the entity it is being perched on jumping or being damaged当一条蠹虫从方块中生成时当史莱姆分裂时当生物由于刷怪箱生成时当生物由于刷怪蛋生成时When an entity is created by a cast spell.当实体作为陷阱陷害玩家时When a creature spawns from a trial spawner当村庄生成保卫的铁傀儡时当一个僵尸进攻村庄而生成时. -
方法概要
修饰符和类型方法说明返回带有指定名称的该类型的枚举常量。static CreatureSpawnEvent.SpawnReason[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
NATURAL
自然生成 -
JOCKEY
当实体因为乘骑而被生成时 (大多是蜘蛛骑士) -
CHUNK_GEN
已过时。不再调用, 区块与已经存在的实体一同生成. 请考虑使用ChunkLoadEvent.isNewChunk()
和Chunk.getEntities()
以达到类似效果当区块产生而生成生物时 -
SPAWNER
当生物由于刷怪箱生成时 -
TRIAL_SPAWNER
When a creature spawns from a trial spawner -
EGG
当生物由于蛋生成时 (不是刷怪蛋,是普通的鸡蛋) -
SPAWNER_EGG
当生物由于刷怪蛋生成时 -
LIGHTNING
当生物由于闪电而生成时 -
BUILD_SNOWMAN
当雪人被建造时 -
BUILD_IRONGOLEM
当一个铁傀儡被建造时 -
BUILD_WITHER
当一个凋零被建造时 -
VILLAGE_DEFENSE
当村庄生成保卫的铁傀儡时 -
VILLAGE_INVASION
当一个僵尸进攻村庄而生成时. -
BREEDING
When an entity breeds to create a child, this also include Shulker and Allay -
SLIME_SPLIT
当史莱姆分裂时 -
REINFORCEMENTS
当一个实体请求支援时 -
NETHER_PORTAL
当生物由于地狱传送门而生成时 -
DISPENSE_EGG
当生物由于投掷器丢出鸡蛋而生成时 -
INFECTION
当一个僵尸感染一个村民时 -
CURED
当村民从僵尸状态痊愈时 -
OCELOT_BABY
当豹猫为了照顾自己的孩子而出生时 -
SILVERFISH_BLOCK
当一条蠹虫从方块中生成时 -
MOUNT
当一个实体成为其他实体坐骑时 (大多数时是鸡骑士) -
TRAP
当实体作为陷阱陷害玩家时 -
ENDER_PEARL
由于末影珍珠的使用而生成. -
SHOULDER_ENTITY
When an entity is spawned as a result of the entity it is being perched on jumping or being damaged -
DROWNED
当一个实体溺亡而生成时 -
SHEARED
When an cow is spawned by shearing a mushroom cow -
EXPLOSION
由于苦力怕等发生爆炸产生效果云时/When eg an effect cloud is spawned as a result of a creeper exploding -
RAID
When an entity is spawned as part of a raid -
PATROL
When an entity is spawned as part of a patrol -
BEEHIVE
When a bee is released from a beehive/bee nest -
PIGLIN_ZOMBIFIED
When a piglin is converted to a zombified piglin. -
SPELL
When an entity is created by a cast spell. -
FROZEN
When an entity is shaking in Powder Snow and a new entity spawns. -
METAMORPHOSIS
When a tadpole converts to a frog -
DUPLICATION
When an Allay duplicate itself -
COMMAND
When a creature is spawned by the "/summon" command -
ENCHANTMENT
When a creature is spawned by an enchantment -
POTION_EFFECT
When a creature is spawned by a potion effect, for example:PotionType.OOZING
,PotionType.INFESTED
-
CUSTOM
当生物被插件生成时 -
DEFAULT
实体由于其他原因而生成
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-