NpcEvent.CollideEvent, NpcEvent.DamagedEvent, NpcEvent.DialogClosedEvent, NpcEvent.DialogEvent, NpcEvent.DiedEvent, NpcEvent.InitEvent, NpcEvent.InteractEvent, NpcEvent.KilledEntityEvent, NpcEvent.MeleeAttackEvent, NpcEvent.RangedLaunchedEvent, NpcEvent.TargetEvent, NpcEvent.TargetLostEvent, NpcEvent.TimerEvent, NpcEvent.UpdateEventCustomNPCsEvent.CNPCNaturalSpawnEvent| Modifier and Type | Field and Description |
|---|---|
IEntityLivingBase |
entity |
API| Constructor and Description |
|---|
TargetEvent(ICustomNpc npc,
net.minecraft.entity.EntityLivingBase entity) |
| Modifier and Type | Method and Description |
|---|---|
IEntityLivingBase |
getTarget() |
void |
setTarget(IEntityLivingBase entity) |
isCancelled, setCancelledpublic IEntityLivingBase entity
public TargetEvent(ICustomNpc npc, net.minecraft.entity.EntityLivingBase entity)
public IEntityLivingBase getTarget()
public void setTarget(IEntityLivingBase entity)