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;
Constructors
new(baseCostA as ItemStack, result as ItemStack, maxUses as int, xp as int, priceMultiplier as float)
new MerchantOffer(myItemStack, myItemStack, myInt, myInt, myFloat);
new(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, maxUses as int, xp as int, priceMultiplier as float)
new MerchantOffer(myItemStack, myItemStack, myItemStack, myInt, myInt, myFloat);
new(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float)
new MerchantOffer(myItemStack, myItemStack, myItemStack, myInt, myInt, myInt, myFloat);
new(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float, demand as int)
new MerchantOffer(myItemStack, myItemStack, myItemStack, myInt, myInt, myInt, myFloat, myInt);
Members
addToSpecialPriceDiff(specialPriceDiff as int)
// MerchantOffer.addToSpecialPriceDiff(specialPriceDiff as int);myMerchantOffer.addToSpecialPriceDiff(myInt);
Parameters:
specialPriceDiff: int
Type: int
assemble() as IItemStack
Getter
// MerchantOffer.baseCostA as IItemStackmyMerchantOffer.baseCostA
Return Type:
IItemStack
baseCostA() as IItemStack
Getter
// MerchantOffer.costA as IItemStackmyMerchantOffer.costA
Return Type:
IItemStack
costA() as IItemStack
Getter
// MerchantOffer.costB as IItemStackmyMerchantOffer.costB
Return Type:
IItemStack
costB() as IItemStack
Getter
// MerchantOffer.demand as intmyMerchantOffer.demand
Return Type:
int
demand() as int
// MerchantOffer.demand() as int;myMerchantOffer.demand();
Return Type:
int
increaseUses()
// MerchantOffer.increaseUses();myMerchantOffer.increaseUses();
Getter
// MerchantOffer.maxUses as intmyMerchantOffer.maxUses
Return Type:
int
maxUses() as int
// MerchantOffer.maxUses() as int;myMerchantOffer.maxUses();
Return Type:
int
Getter
// MerchantOffer.needsRestock as boolmyMerchantOffer.needsRestock
Return Type:
bool
needsRestock() as bool
// MerchantOffer.needsRestock() as bool;myMerchantOffer.needsRestock();
Return Type:
bool
Getter
// MerchantOffer.outOfStock as boolmyMerchantOffer.outOfStock
Return Type:
bool
outOfStock() as bool
// MerchantOffer.outOfStock() as bool;myMerchantOffer.outOfStock();
Return Type:
bool
Getter
// MerchantOffer.priceMultiplier as floatmyMerchantOffer.priceMultiplier
Return Type:
float
priceMultiplier() as float
// MerchantOffer.priceMultiplier() as float;myMerchantOffer.priceMultiplier();
Return Type:
float
resetSpecialPriceDiff()
// MerchantOffer.resetSpecialPriceDiff();myMerchantOffer.resetSpecialPriceDiff();
resetUses()
// MerchantOffer.resetUses();myMerchantOffer.resetUses();
Getter
// MerchantOffer.result as IItemStackmyMerchantOffer.result
Return Type:
IItemStack
result() as IItemStack
satisfiedBy(a as IItemStack, b as IItemStack) as bool
myMerchantOffer.satisfiedBy(myIItemStack, myIItemStack);
Parameters:
a: IItemStack
Type: IItemStack
b: IItemStack
Type: IItemStack
Return Type:
bool
setToOutOfStock()
// MerchantOffer.setToOutOfStock();myMerchantOffer.setToOutOfStock();
Getter
// MerchantOffer.shouldRewardExp as boolmyMerchantOffer.shouldRewardExp
Return Type:
bool
shouldRewardExp() as bool
// MerchantOffer.shouldRewardExp() as bool;myMerchantOffer.shouldRewardExp();
Return Type:
bool
Getter
// MerchantOffer.specialPriceDiff as intmyMerchantOffer.specialPriceDiff
Return Type:
int
Setter
// MerchantOffer.specialPriceDiff = (specialPriceDiff as int);myMerchantOffer.specialPriceDiff = myInt;
Parameters:
specialPriceDiff: int
Type: int
specialPriceDiff() as int
// MerchantOffer.specialPriceDiff() as int;myMerchantOffer.specialPriceDiff();
Return Type:
int
specialPriceDiff(specialPriceDiff as int)
// MerchantOffer.specialPriceDiff(specialPriceDiff as int);myMerchantOffer.specialPriceDiff(myInt);
Parameters:
specialPriceDiff: int
Type: int
take(a as IItemStack, b as IItemStack) as bool
myMerchantOffer.take(myIItemStack, myIItemStack);
Parameters:
a: IItemStack
Type: IItemStack
b: IItemStack
Type: IItemStack
Return Type:
bool
updateDemand()
// MerchantOffer.updateDemand();myMerchantOffer.updateDemand();
Getter
// MerchantOffer.uses as intmyMerchantOffer.uses
Return Type:
int
uses() as int
// MerchantOffer.uses() as int;myMerchantOffer.uses();
Return Type:
int
Getter
// MerchantOffer.xp as intmyMerchantOffer.xp
Return Type:
int
xp() as int
// MerchantOffer.xp() as int;myMerchantOffer.xp();
Return Type:
int