public class LivingSetAttackTargetEvent extends LivingEvent
EntityLiving.setAttackTarget(EntityLivingBase)
.ForgeHooks.onLivingSetAttackTarget(EntityLivingBase, EntityLivingBase)
.target
contains the newly targeted Entity.Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private EntityLivingBase |
target |
Constructor and Description |
---|
LivingSetAttackTargetEvent(EntityLivingBase entity,
EntityLivingBase target) |
Modifier and Type | Method and Description |
---|---|
EntityLivingBase |
getTarget() |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final EntityLivingBase target
public LivingSetAttackTargetEvent(EntityLivingBase entity, EntityLivingBase target)
public EntityLivingBase getTarget()