Class PlayerTradeEvent

All Implemented Interfaces:
Cancellable

@NullMarked public class PlayerTradeEvent extends PlayerPurchaseEvent
Called when a player trades with a villager or wandering trader
  • Constructor Details

  • Method Details

    • getVillager

      public AbstractVillager getVillager()
      Gets the Villager or Wandering trader associated with this event
      Returns:
      the villager or wandering trader