Class NPCTraderEvent.ShowTrade.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
Enclosing class:
NPCTraderEvent.ShowTrade

public static class NPCTraderEvent.ShowTrade.Pre extends NPCTraderEvent.ShowTrade
Fired just before they open the screen Cancelling this will prevent them from opening the screen
  • Constructor Details

    • Pre

      public Pre(net.minecraft.world.entity.player.Player player, NPC trader, TradePair trade)
  • Method Details

    • setTrade

      public void setTrade(TradePair trade)