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