Class NPCTraderEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCTraderEvent
Direct Known Subclasses:
NPCTraderEvent.AcceptTrade, NPCTraderEvent.ShowTrade

public class NPCTraderEvent extends net.minecraftforge.eventbus.api.Event
All events relating to the npc trader
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event fired when a player is accepting a trade from the NPC Trader
    static class 
    Events fired surrounding the player opening the trade screen

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    NPCTraderEvent(net.minecraft.world.entity.player.Player player, NPC trader)
     
  • 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

    • player

      protected final net.minecraft.world.entity.player.Player player
    • trader

      protected final NPC trader
  • Constructor Details

    • NPCTraderEvent

      protected NPCTraderEvent(net.minecraft.world.entity.player.Player player, NPC trader)
  • Method Details

    • getPlayer

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

      public NPC getTrader()