public class LivingSetAttackTargetEvent extends LivingEvent
EntityLiving.setAttackTarget(EntityLivingBase)
and
EntityLivingBase.setRevengeTarget(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
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
public LivingSetAttackTargetEvent(EntityLivingBase entity, EntityLivingBase target)
public EntityLivingBase getTarget()