BedrioxDOCUMENTATION
API CLASS

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\VillagerTradeOffer

Typed public method.

setOffer(Bedriox\Api\Entity\Trade\VillagerTradeOffer $offer): void

Typed public method.

View exact source ↗