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