VillagerTradeEvent
Cancellable, adjustable trade before inputs are consumed and output is granted.
Bedriox\Api\Event\Entity\Villager\VillagerTradeEvent
classBedriox\Api\Event\Entity\Villager
Public methods
__construct(Bedriox\Api\Player\Player $player, Bedriox\Api\Entity\Vanilla\Villager $villager, Bedriox\Api\Entity\Trade\VillagerTradeOffer $offer, int $tradeCount = 1)Typed public method.
offer(): Bedriox\Api\Entity\Trade\VillagerTradeOfferTyped public method.
setOffer(Bedriox\Api\Entity\Trade\VillagerTradeOffer $offer): voidTyped public method.
