Uses of Class
cn.nukkit.event.entity.EntityDamageEvent
-
Uses of EntityDamageEvent in cn.nukkit
Modifier and TypeMethodDescriptionboolean
Player.attack
(EntityDamageEvent source) protected void
Player.onBlock
(Entity entity, EntityDamageEvent e, boolean animate) void
PlayerHandle.onBlock
(Entity entity, EntityDamageEvent e, boolean animate) -
Uses of EntityDamageEvent in cn.nukkit.block
Modifier and TypeMethodDescriptionprotected EntityDamageEvent
BlockCampfire.getDamageEvent
(Entity entity) protected EntityDamageEvent
BlockCampfireSoul.getDamageEvent
(Entity entity) -
Uses of EntityDamageEvent in cn.nukkit.entity
Modifier and TypeMethodDescriptionboolean
Entity.attack
(EntityDamageEvent source) 当一个实体被攻击时(即接受一个实体伤害事件 这个事件可以是由其他实体攻击导致,也可能是自然伤害)调用.boolean
EntityHumanType.attack
(EntityDamageEvent source) boolean
EntityIntelligent.attack
(EntityDamageEvent source) boolean
EntityIntelligentHuman.attack
(EntityDamageEvent source) boolean
EntityLiving.attack
(EntityDamageEvent source) protected boolean
EntityLiving.blockedByShield
(EntityDamageEvent source) protected double
EntityHumanType.calculateEnchantmentProtectionFactor
(Item item, EntityDamageEvent source) protected double
EntityIntelligentHuman.calculateEnchantmentProtectionFactor
(Item item, EntityDamageEvent source) protected Item
EntityHumanType.damageArmor
(Item armor, Entity damager, EntityDamageEvent event) protected Item
EntityIntelligentHuman.damageArmor
(Item armor, Entity damager, EntityDamageEvent event) protected void
EntityHuman.onBlock
(Entity entity, EntityDamageEvent event, boolean animate) protected void
EntityIntelligentHuman.onBlock
(Entity entity, EntityDamageEvent event, boolean animate) protected void
EntityLiving.onBlock
(Entity entity, EntityDamageEvent event, boolean animate) void
Entity.setLastDamageCause
(EntityDamageEvent type) -
Uses of EntityDamageEvent in cn.nukkit.entity.ai.memory
Modifier and TypeFieldDescriptionstatic final MemoryType<EntityDamageEvent>
CoreMemoryTypes.BE_ATTACKED_EVENT
实体被攻击产生的攻击事件 -
Uses of EntityDamageEvent in cn.nukkit.entity.item
Modifier and TypeMethodDescriptionboolean
EntityAreaEffectCloud.attack
(EntityDamageEvent source) boolean
EntityArmorStand.attack
(EntityDamageEvent source) boolean
EntityBoat.attack
(EntityDamageEvent source) boolean
EntityEndCrystal.attack
(EntityDamageEvent source) boolean
EntityFallingBlock.attack
(EntityDamageEvent source) boolean
EntityFirework.attack
(EntityDamageEvent source) boolean
EntityItem.attack
(EntityDamageEvent source) boolean
EntityMinecartAbstract.attack
(EntityDamageEvent source) boolean
EntityPainting.attack
(EntityDamageEvent source) boolean
EntityPrimedTNT.attack
(EntityDamageEvent source) boolean
EntityVehicle.attack
(EntityDamageEvent source) boolean
EntityXPOrb.attack
(EntityDamageEvent source) -
Uses of EntityDamageEvent in cn.nukkit.entity.mob
Modifier and TypeMethodDescriptionboolean
EntityMob.attack
(EntityDamageEvent source) boolean
EntityWarden.attack
(EntityDamageEvent source) protected double
EntityMob.calculateEnchantmentProtectionFactor
(Item item, EntityDamageEvent source) -
Uses of EntityDamageEvent in cn.nukkit.entity.passive
-
Uses of EntityDamageEvent in cn.nukkit.entity.projectile
-
Uses of EntityDamageEvent in cn.nukkit.entity.weather
-
Uses of EntityDamageEvent in cn.nukkit.event.entity
Modifier and TypeClassDescriptionclass
class
class
ModifierConstructorDescriptionEntityDamageBlockedEvent
(Entity entity, EntityDamageEvent damage, boolean knockBack, boolean animation) -
Uses of EntityDamageEvent in cn.nukkit.item.enchantment
Modifier and TypeMethodDescriptionfloat
Enchantment.getProtectionFactor
(EntityDamageEvent event) 当实体盔甲具有附魔时触发 -
Uses of EntityDamageEvent in cn.nukkit.item.enchantment.protection
Modifier and TypeMethodDescriptionfloat
EnchantmentProtectionAll.getProtectionFactor
(EntityDamageEvent e) float
EnchantmentProtectionExplosion.getProtectionFactor
(EntityDamageEvent e) float
EnchantmentProtectionFall.getProtectionFactor
(EntityDamageEvent e) float
EnchantmentProtectionFire.getProtectionFactor
(EntityDamageEvent e) float
EnchantmentProtectionProjectile.getProtectionFactor
(EntityDamageEvent e)