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 |
|---|---|
IDamageSource |
damageSource |
IItemStack[] |
droppedItems |
int |
expDropped |
IEntity |
source |
java.lang.String |
type |
API| Constructor and Description |
|---|
DiedEvent(ICustomNpc npc,
net.minecraft.util.DamageSource damagesource,
net.minecraft.entity.Entity entity,
java.util.ArrayList<net.minecraft.item.ItemStack> droppedItems,
int expDropped) |
| Modifier and Type | Method and Description |
|---|---|
IDamageSource |
getDamageSource() |
IEntity |
getSource() |
java.lang.String |
getType() |
isCancelled, setCancelledpublic final IDamageSource damageSource
public final java.lang.String type
public final IEntity source
public IItemStack[] droppedItems
public int expDropped
public DiedEvent(ICustomNpc npc, net.minecraft.util.DamageSource damagesource, net.minecraft.entity.Entity entity, java.util.ArrayList<net.minecraft.item.ItemStack> droppedItems, int expDropped)
public IEntity getSource()
public IDamageSource getDamageSource()
public java.lang.String getType()