public abstract class NPCEvent
extends net.minecraftforge.eventbus.api.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 |
---|---|
NPCEntity |
npc
The NPC being interacted with.
|
net.minecraft.entity.player.PlayerEntity |
player
The player performing the interaction.
|
EnumNPCType |
type
What type of NPC this is for.
|
Modifier | Constructor and Description |
---|---|
protected |
NPCEvent() |
protected |
NPCEvent(NPCEntity npc,
EnumNPCType type,
net.minecraft.entity.player.PlayerEntity player) |
public NPCEntity npc
public EnumNPCType type
public net.minecraft.entity.player.PlayerEntity player
protected NPCEvent()
protected NPCEvent(NPCEntity npc, EnumNPCType type, net.minecraft.entity.player.PlayerEntity player)