Class NPCEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCEvent
Direct Known Subclasses:
NPCEvent.EndBattle, NPCEvent.StartBattle

public abstract class NPCEvent extends net.minecraftforge.eventbus.api.Event
Collection of events fired relating to interactions with Pixelmon NPCs.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event fired when a player versus NPC battle ends.
    static class 
    Event fired when a player attempts to start a battle versus an NPC.

    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
    Modifier and Type
    Field
    Description
    protected final NPC
     
    protected final net.minecraft.world.entity.player.Player
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NPCEvent(NPC npc, net.minecraft.world.entity.player.Player player)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.entity.player.Player
     

    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
  • Field Details

    • npc

      protected final NPC npc
    • player

      protected final net.minecraft.world.entity.player.Player player
  • Constructor Details

    • NPCEvent

      protected NPCEvent(NPC npc, net.minecraft.world.entity.player.Player player)
  • Method Details

    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
    • getNPC

      public NPC getNPC()