程序包 | 说明 |
---|---|
org.bukkit.entity |
为在
世界 内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等. |
org.bukkit.event.entity | |
org.bukkit.event.player |
类和说明 |
---|
EntityDamageEvent
储存伤害事件的数据
原文:
Stores data for damage events
|
类和说明 |
---|
CreatureSpawnEvent.SpawnReason
生成原因的枚举类.
|
CreeperPowerEvent.PowerCause
造成这次强化的原因
|
EntityChangeBlockEvent
当一个非玩家的实体在改变方块时调用该事件。
|
EntityCombustEvent
当实体燃烧时触发该事件
如果这个事件被取消,那么这个实体将不会燃烧.
|
EntityDamageEvent
储存伤害事件的数据
原文:
Stores data for damage events
|
EntityDamageEvent.DamageCause
An enum to specify the cause of the damage
|
EntityDamageEvent.DamageModifier
已过时。
这个API被废弃了,具体见后面的网址,很快就要被移除了,就不深入解释了.This API is responsible for a large number of implementation
problems and is in general unsustainable to maintain. It is likely to be
removed very soon in a subsequent release. Please see
https://www.spigotmc.org/threads/194446/ for more information.
|
EntityDeathEvent
当任何一个实体死亡时触发本事件
|
EntityEvent
代表实体相关事件.
|
EntityRegainHealthEvent.RegainReason
An enum to specify the type of health regaining that is occurring
|
EntityTargetEvent
Called when a creature targets or untargets another entity
|
EntityTargetEvent.TargetReason
An enum to specify the reason for the targeting
|
EntityTeleportEvent
Thrown when a non-player entity (such as an Enderman) tries to teleport
from one location to another.
|
EntityUnleashEvent.UnleashReason |
ProjectileHitEvent
Called when a projectile hits an object
|
类和说明 |
---|
EntityEvent
代表实体相关事件.
|
EntityUnleashEvent
Called immediately prior to an entity being unleashed.
|