public abstract class NPCEvent
extends net.minecraftforge.fml.common.eventhandler.Event
NPCEvent.Interact
, NPCEvent.StartBattle
, NPCEvent.EndBattle
Modifier and Type | Class and Description |
---|---|
static class |
NPCEvent.EndBattle
Event fired when a player versus NPC battle ends.
|
static class |
NPCEvent.Interact
Event fired when an NPC is interacted with, before any logic is executed.
|
static class |
NPCEvent.StartBattle
Event fired when a player attempts to start a battle versus an NPC.
|
Modifier and Type | Field and Description |
---|---|
EntityNPC |
npc
The NPC being interacted with.
|
net.minecraft.entity.player.EntityPlayer |
player
The player performing the interaction.
|
EnumNPCType |
type
What type of NPC this is for.
|
Modifier | Constructor and Description |
---|---|
protected |
NPCEvent() |
protected |
NPCEvent(EntityNPC npc,
EnumNPCType type,
net.minecraft.entity.player.EntityPlayer player) |
public EntityNPC npc
public EnumNPCType type
public net.minecraft.entity.player.EntityPlayer player
protected NPCEvent()
protected NPCEvent(EntityNPC npc, EnumNPCType type, net.minecraft.entity.player.EntityPlayer player)