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(): boolTyped public method.
withCompletedUse(): selfTyped public method.
withCompletedUses(int $count): selfTyped public method.
withRestockedUses(int $uses = 0): selfTyped public method.
