Class NPCEvent.Interact

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
com.pixelmonmod.pixelmon.api.events.npc.NPCEvent.Interact
Enclosing class:
NPCEvent

public static class NPCEvent.Interact extends NPCEvent
Event fired when an NPC is interacted with, before any logic is executed. Cancel to stop the logic from executing.

Created by Waterdude
Since:
March 20, 2021
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCEvent

    NPCEvent.EndBattle, NPCEvent.Interact, NPCEvent.StartBattle

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Field Summary

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCEvent

    npc, player, type
  • Constructor Summary

    Constructors
    Constructor
    Description
    Interact(NPCEntity npc, EnumNPCType type, net.minecraft.world.entity.player.Player player)
     
  • Method Summary

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Interact

      public Interact(NPCEntity npc, EnumNPCType type, net.minecraft.world.entity.player.Player player)