BedrioxDOCUMENTATION
API CLASS

VillagerTradeList

Bounded immutable offer generation exposed to plugins and trade sessions.

Bedriox\Api\Entity\Trade\VillagerTradeList
classBedriox\Api\Entity\Trade

Public methods

__construct(array $offers, int $generation = 0)

Typed public method.

offer(string $key): ?Bedriox\Api\Entity\Trade\VillagerTradeOffer

Typed public method.

Constants

MAXIMUM_OFFERS

View exact source ↗