public class AttackEntityEvent extends PlayerEvent
EntityPlayer.attackTargetEntityWithCurrentItem(Entity)
.target
contains the Entity that was damaged by the player. Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Constructor and Description |
---|
AttackEntityEvent(EntityPlayer player,
Entity target) |
Modifier and Type | Method and Description |
---|---|
Entity |
getTarget() |
getEntityPlayer
getEntityLiving
getEntity
public AttackEntityEvent(EntityPlayer player, Entity target)
public Entity getTarget()