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 |
|---|---|
IPlayer |
player |
API| Constructor and Description |
|---|
InteractEvent(ICustomNpc npc,
net.minecraft.entity.player.EntityPlayer player) |
isCancelled, setCancelledpublic final IPlayer player
public InteractEvent(ICustomNpc npc, net.minecraft.entity.player.EntityPlayer player)