MerchantOffer
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
import crafttweaker.api.villager.MerchantOffer;Members
// MerchantOffer.addToSpecialPriceDiff(specialPriceDiff as int);myMerchantOffer.addToSpecialPriceDiff(myInt);Parameters:
specialPriceDiff: int Type: int // MerchantOffer.baseCostA as IItemStackmyMerchantOffer.baseCostA
Return Type:
IItemStack
// MerchantOffer.costA as IItemStackmyMerchantOffer.costA
Return Type:
IItemStack
// MerchantOffer.costB as IItemStackmyMerchantOffer.costB
Return Type:
IItemStack
// MerchantOffer.demand as intmyMerchantOffer.demand
Return Type:
int
// MerchantOffer.demand() as int;myMerchantOffer.demand();
Return Type:
int
// MerchantOffer.increaseUses();myMerchantOffer.increaseUses();// MerchantOffer.maxUses as intmyMerchantOffer.maxUses
Return Type:
int
// MerchantOffer.maxUses() as int;myMerchantOffer.maxUses();
Return Type:
int
// MerchantOffer.needsRestock as boolmyMerchantOffer.needsRestock
Return Type:
bool
// MerchantOffer.needsRestock() as bool;myMerchantOffer.needsRestock();
Return Type:
bool
// MerchantOffer.of(baseCostA as ItemCost, result as IItemStack, maxUses as int, xp as int, priceMultiplier as float) as MerchantOffer;MerchantOffer.of(myItemCost, myIItemStack, myInt, myInt, myFloat);Parameters:
result: IItemStack Type: IItemStack maxUses: int Type: int xp: int Type: int priceMultiplier: float Type: float
Return Type:
MerchantOffer
// MerchantOffer.of(baseCostA as ItemCost, costB as ItemCost, result as IItemStack, maxUses as int, xp as int, priceMultiplier as float) as MerchantOffer;MerchantOffer.of(myItemCost, myItemCost, myIItemStack, myInt, myInt, myFloat);Parameters:
result: IItemStack Type: IItemStack maxUses: int Type: int xp: int Type: int priceMultiplier: float Type: float
Return Type:
MerchantOffer
// MerchantOffer.of(baseCostA as ItemCost, costB as ItemCost, result as IItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float) as MerchantOffer;MerchantOffer.of(myItemCost, myItemCost, myIItemStack, myInt, myInt, myInt, myFloat);Parameters:
result: IItemStack Type: IItemStack uses: int Type: int maxUses: int Type: int xp: int Type: int priceMultiplier: float Type: float
Return Type:
MerchantOffer
// MerchantOffer.of(baseCostA as ItemCost, costB as ItemCost, result as IItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float, demand as int) as MerchantOffer;MerchantOffer.of(myItemCost, myItemCost, myIItemStack, myInt, myInt, myInt, myFloat, myInt);Parameters:
result: IItemStack Type: IItemStack uses: int Type: int maxUses: int Type: int xp: int Type: int priceMultiplier: float Type: float demand: int Type: int
Return Type:
MerchantOffer
// MerchantOffer.outOfStock as boolmyMerchantOffer.outOfStock
Return Type:
bool
// MerchantOffer.outOfStock() as bool;myMerchantOffer.outOfStock();
Return Type:
bool
// MerchantOffer.priceMultiplier as floatmyMerchantOffer.priceMultiplier
Return Type:
float
// MerchantOffer.priceMultiplier() as float;myMerchantOffer.priceMultiplier();
Return Type:
float
// MerchantOffer.resetSpecialPriceDiff();myMerchantOffer.resetSpecialPriceDiff();// MerchantOffer.resetUses();myMerchantOffer.resetUses();// MerchantOffer.result as IItemStackmyMerchantOffer.result
Return Type:
IItemStack
myMerchantOffer.satisfiedBy(myIItemStack, myIItemStack);Parameters:
a: IItemStack Type: IItemStack b: IItemStack Type: IItemStack
Return Type:
bool
// MerchantOffer.setToOutOfStock();myMerchantOffer.setToOutOfStock();// MerchantOffer.shouldRewardExp as boolmyMerchantOffer.shouldRewardExp
Return Type:
bool
// MerchantOffer.shouldRewardExp() as bool;myMerchantOffer.shouldRewardExp();
Return Type:
bool
// MerchantOffer.specialPriceDiff as intmyMerchantOffer.specialPriceDiff
Return Type:
int
// MerchantOffer.specialPriceDiff = (specialPriceDiff as int);myMerchantOffer.specialPriceDiff = myInt;Parameters:
specialPriceDiff: int Type: int // MerchantOffer.specialPriceDiff() as int;myMerchantOffer.specialPriceDiff();
Return Type:
int
// MerchantOffer.specialPriceDiff(specialPriceDiff as int);myMerchantOffer.specialPriceDiff(myInt);Parameters:
specialPriceDiff: int Type: int myMerchantOffer.take(myIItemStack, myIItemStack);Parameters:
a: IItemStack Type: IItemStack b: IItemStack Type: IItemStack
Return Type:
bool
// MerchantOffer.updateDemand();myMerchantOffer.updateDemand();// MerchantOffer.uses as intmyMerchantOffer.uses
Return Type:
int
// MerchantOffer.uses() as int;myMerchantOffer.uses();
Return Type:
int
// MerchantOffer.xp as intmyMerchantOffer.xp
Return Type:
int
// MerchantOffer.xp() as int;myMerchantOffer.xp();
Return Type:
int