类 | 说明 |
---|---|
AreaEffectCloudApplyEvent |
当滞留药水应用它的效果时触发本事件,期间每5 tick发生一次。
|
CreatureSpawnEvent |
当一个生物体在世界中出生时触发该事件.
|
CreeperPowerEvent |
当爬行者被闪电击中时触发该事件.
|
EnderDragonChangePhaseEvent |
Called when an EnderDragon switches controller phase.
|
EntityAirChangeEvent |
当实体的氧气值发生变化时触发本事件
|
EntityBreakDoorEvent |
当
实体 破坏门时触发本事件. |
EntityBreedEvent |
Called when one Entity breeds with another Entity.
|
EntityChangeBlockEvent |
当一个非玩家的实体在改变方块时调用该事件。
|
EntityCombustByBlockEvent |
当方块造成实体燃烧时触发该事件.
|
EntityCombustByEntityEvent |
当一个实体造成另外一个实体燃烧时触发该事件.
|
EntityCombustEvent |
当实体燃烧时触发该事件
如果这个事件被取消,那么这个实体将不会燃烧.
|
EntityCreatePortalEvent |
当一个
LivingEntity 在世界中创建传送门时触发该事件. |
EntityDamageByBlockEvent |
当一个实体受到来自方块的伤害时触发该事件
原文:
Called when an entity is damaged by a block
|
EntityDamageByEntityEvent |
当一个实体受到另外一个实体伤害时触发该事件
|
EntityDamageEvent |
储存伤害事件的数据
原文:
Stores data for damage events
|
EntityDeathEvent |
当任何一个实体死亡时触发本事件
|
EntityEvent |
代表实体相关事件.
|
EntityExplodeEvent |
当一个实体爆炸的时候触发本事件
|
EntityInteractEvent |
当一个实体与其他物体互交时触发本事件
|
EntityPickupItemEvent |
Thrown when a entity picks an item up from the ground
|
EntityPortalEnterEvent |
当一个实体与传送门接触时触发本事件.
|
EntityPortalEvent |
当一个非玩家的实体被传送门传送时触发本事件
对于玩家请看
PlayerPortalEvent
原文:
Called when a non-player entity is about to teleport because it is in
contact with a portal. |
EntityPortalExitEvent |
Called before an entity exits a portal.
|
EntityRegainHealthEvent |
Stores data for health-regain events
|
EntityResurrectEvent |
Called when an entity dies and may have the opportunity to be resurrected.
|
EntityShootBowEvent |
Called when a LivingEntity shoots a bow firing an arrow
|
EntityTameEvent |
Thrown when a LivingEntity is tamed
|
EntityTargetEvent |
Called when a creature targets or untargets another entity
|
EntityTargetLivingEntityEvent |
Called when an Entity targets a
LivingEntity and can only target
LivingEntity's. |
EntityTeleportEvent |
Thrown when a non-player entity (such as an Enderman) tries to teleport
from one location to another.
|
EntityToggleGlideEvent |
Sent when an entity's gliding status is toggled with an Elytra.
|
EntityUnleashEvent |
Called immediately prior to an entity being unleashed.
|
ExpBottleEvent |
Called when a ThrownExpBottle hits and releases experience.
|
ExplosionPrimeEvent |
Called when an entity has made a decision to explode.
|
FireworkExplodeEvent |
当烟花爆炸时触发本事件
|
FoodLevelChangeEvent |
当一个人类实体的饥饿值发生变化时触发本事件
|
HorseJumpEvent |
当马跳起时调用此事件.
|
ItemDespawnEvent |
This event is called when a
Item is removed from
the world because it has existed for 5 minutes. |
ItemMergeEvent | |
ItemSpawnEvent |
Called when an item is spawned into a world
|
LingeringPotionSplashEvent |
Called when a splash potion hits an area
|
PigZapEvent |
Stores data for pigs being zapped
|
PlayerDeathEvent |
当一个
玩家 死亡时触发本事件 |
PlayerLeashEntityEvent |
Called immediately prior to a creature being leashed by a player.
|
PotionSplashEvent |
Called when a splash potion hits an area
|
ProjectileHitEvent |
Called when a projectile hits an object
|
ProjectileLaunchEvent |
当一个抛射物被发射时触发本事件.
|
SheepDyeWoolEvent |
Called when a sheep's wool is dyed
|
SheepRegrowWoolEvent |
Called when a sheep regrows its wool
|
SlimeSplitEvent |
当史莱姆死亡后分裂成小史莱姆时触发本事件
|
VillagerAcquireTradeEvent |
Called whenever a villager acquires a new trade.
|
VillagerReplenishTradeEvent |
Called when a villager's trade's maximum uses is increased, due to a player's
trade.
|
枚举 | 说明 |
---|---|
CreatureSpawnEvent.SpawnReason |
生成原因的枚举类.
|
CreeperPowerEvent.PowerCause |
造成这次强化的原因
|
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.
|
EntityRegainHealthEvent.RegainReason |
An enum to specify the type of health regaining that is occurring
|
EntityTargetEvent.TargetReason |
An enum to specify the reason for the targeting
|
EntityUnleashEvent.UnleashReason |