程序包 org.bukkit.event.entity
package org.bukkit.event.entity
-
类说明当滞留药水应用它的效果时触发本事件,期间每5 tick发生一次。当一个生物体在世界中出生时触发该事件.生成原因的枚举类.当爬行者被闪电击中时触发该事件.造成这次强化的原因Called when an EnderDragon switches controller phase.当实体的氧气值发生变化时触发本事件当
实体
破坏门时触发本事件.Called when one Entity breeds with another Entity.当一个非玩家的实体在改变方块时调用该事件。当方块造成实体燃烧时触发该事件.当一个实体造成另外一个实体燃烧时触发该事件.当实体燃烧时触发该事件当一个LivingEntity
在世界中创建传送门时触发该事件.当一个实体受到来自方块的伤害时触发该事件 原文: Called when an entity is damaged by a block当一个实体受到另外一个实体伤害时触发该事件储存伤害事件的数据 原文: Stores data for damage eventsAn enum to specify the cause of the damage已过时。这个API被废弃了,具体见后面的网址,很快就要被移除了,就不深入解释了.This API is responsible for a large number of implementation problems and is in general unsustainable to maintain.当任何一个实体死亡时触发本事件代表实体相关事件.当一个实体爆炸的时候触发本事件当一个实体与其他物体互交时触发本事件Thrown when a entity picks an item up from the ground当一个实体与传送门接触时触发本事件.当一个非玩家的实体被传送门传送时触发本事件Called before an entity exits a portal.Stores data for health-regain eventsAn enum to specify the type of health regaining that is occurringCalled when an entity dies and may have the opportunity to be resurrected.Called when a LivingEntity shoots a bow firing an arrowThrown when a LivingEntity is tamedCalled when a creature targets or untargets another entityAn enum to specify the reason for the targetingCalled when an Entity targets aLivingEntity
and can only target LivingEntity's.Thrown when a non-player entity (such as an Enderman) tries to teleport from one location to another.Sent when an entity's gliding status is toggled with an Elytra.Called immediately prior to an entity being unleashed.Called when a ThrownExpBottle hits and releases experience.Called when an entity has made a decision to explode.当烟花爆炸时触发本事件当一个人类实体的饥饿值发生变化时触发本事件当马跳起时调用此事件.This event is called when aItem
is removed from the world because it has existed for 5 minutes.Called when an item is spawned into a worldCalled when a splash potion hits an areaStores data for pigs being zapped当一个玩家
死亡时触发本事件Called immediately prior to a creature being leashed by a player.Called when a splash potion hits an areaCalled when a projectile hits an object当一个抛射物被发射时触发本事件.Called when a sheep's wool is dyedCalled when a sheep regrows its wool当史莱姆死亡后分裂成小史莱姆时触发本事件Called whenever a villager acquires a new trade.Called when a villager's trade's maximum uses is increased, due to a player's trade.