BedrioxDOCUMENTATION
API CLASS

VillagerTradeOffer

One immutable server-owned trade, including its persisted demand state.

Bedriox\Api\Entity\Trade\VillagerTradeOffer
classBedriox\Api\Entity\Trade

Public methods

__construct(string $key, Bedriox\Api\Entity\Value\VillagerLevel $level, Bedriox\Api\Inventory\ItemStack $firstInput, ?Bedriox\Api\Inventory\ItemStack $secondInput, Bedriox\Api\Inventory\ItemStack $result, int $uses = 0, int $maximumUses = 12, int $villagerExperience = 1, bool $rewardsPlayerExperience = true, float $priceMultiplier = 0.05, int $demand = 0, int $specialPrice = 0)

Typed public method.

isExhausted(): bool

Typed public method.

withCompletedUse(): self

Typed public method.

withCompletedUses(int $count): self

Typed public method.

withRestockedUses(int $uses = 0): self

Typed public method.

View exact source ↗