MCMerchantOffer
Link to mcmerchantoffer
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.villager.MCMerchantOffer;
Constructors
Link to constructors
ZenScript Copynew MCMerchantOffer(baseCostA as ItemStack, result as ItemStack, maxUses as int, xp as int, priceMultiplier as float) as MCMerchantOffer
Parameter | Type | Description |
---|---|---|
Parameter baseCostA | Type Pila de objetos | Description No description provided |
Parameter result | Type Pila de objetos | Description No description provided |
Parameter maxUses | Type int | Description No description provided |
Parameter xp | Type int | Description No description provided |
Parameter priceMultiplier | Type float | Description No description provided |
ZenScript Copynew MCMerchantOffer(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, maxUses as int, xp as int, priceMultiplier as float) as MCMerchantOffer
Parameter | Type | Description |
---|---|---|
Parameter baseCostA | Type Pila de objetos | Description No description provided |
Parameter costB | Type Pila de objetos | Description No description provided |
Parameter result | Type Pila de objetos | Description No description provided |
Parameter maxUses | Type int | Description No description provided |
Parameter xp | Type int | Description No description provided |
Parameter priceMultiplier | Type float | Description No description provided |
ZenScript Copynew MCMerchantOffer(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float) as MCMerchantOffer
Parameter | Type | Description |
---|---|---|
Parameter baseCostA | Type Pila de objetos | Description No description provided |
Parameter costB | Type Pila de objetos | Description No description provided |
Parameter result | Type Pila de objetos | Description No description provided |
Parameter uses | Type int | Description No description provided |
Parameter maxUses | Type int | Description No description provided |
Parameter xp | Type int | Description No description provided |
Parameter priceMultiplier | Type float | Description No description provided |
ZenScript Copynew MCMerchantOffer(baseCostA as ItemStack, costB as ItemStack, result as ItemStack, uses as int, maxUses as int, xp as int, priceMultiplier as float, demand as int) as MCMerchantOffer
Parameter | Type | Description |
---|---|---|
Parameter baseCostA | Type Pila de objetos | Description No description provided |
Parameter costB | Type Pila de objetos | Description No description provided |
Parameter result | Type Pila de objetos | Description No description provided |
Parameter uses | Type int | Description No description provided |
Parameter maxUses | Type int | Description No description provided |
Parameter xp | Type int | Description No description provided |
Parameter priceMultiplier | Type float | Description No description provided |
Parameter demand | Type int | Description No description provided |
Methods
Link to methods
Name: calculateDemand
Return Type: void
ZenScript Copy// MCMerchantOffer.calculateDemand() as void
myMCMerchantOffer.calculateDemand();
Name: doTransaction
Return Type: boolean
ZenScript CopyMCMerchantOffer.doTransaction(a as IItemStack, b as IItemStack) as boolean
Parameter | Type | Description |
---|---|---|
Parameter a | Type IItemStack | Description No Description Provided |
Parameter b | Type IItemStack | Description No Description Provided |
Name: getBuyingStackFirst
Return Type: IItemStack
ZenScript Copy// MCMerchantOffer.getBuyingStackFirst() as IItemStack
myMCMerchantOffer.getBuyingStackFirst();
Name: getBuyingStackSecond
Return Type: IItemStack
ZenScript Copy// MCMerchantOffer.getBuyingStackSecond() as IItemStack
myMCMerchantOffer.getBuyingStackSecond();
Name: getCopyOfSellingStack
Return Type: IItemStack
ZenScript Copy// MCMerchantOffer.getCopyOfSellingStack() as IItemStack
myMCMerchantOffer.getCopyOfSellingStack();
Name: getDemand
Return Type: int
ZenScript Copy// MCMerchantOffer.getDemand() as int
myMCMerchantOffer.getDemand();
Name: getDiscountedBuyingStackFirst
Return Type: IItemStack
ZenScript Copy// MCMerchantOffer.getDiscountedBuyingStackFirst() as IItemStack
myMCMerchantOffer.getDiscountedBuyingStackFirst();
Name: getDoesRewardExp
Return Type: boolean
ZenScript Copy// MCMerchantOffer.getDoesRewardExp() as boolean
myMCMerchantOffer.getDoesRewardExp();
Name: getGivenExp
Return Type: int
ZenScript Copy// MCMerchantOffer.getGivenExp() as int
myMCMerchantOffer.getGivenExp();
Name: getMaxUses
Return Type: int
ZenScript Copy// MCMerchantOffer.getMaxUses() as int
myMCMerchantOffer.getMaxUses();
Name: getPriceMultiplier
Return Type: float
ZenScript Copy// MCMerchantOffer.getPriceMultiplier() as float
myMCMerchantOffer.getPriceMultiplier();
Name: getSellingStack
Return Type: IItemStack
ZenScript Copy// MCMerchantOffer.getSellingStack() as IItemStack
myMCMerchantOffer.getSellingStack();
Name: getSpecialPrice
Return Type: int
ZenScript Copy// MCMerchantOffer.getSpecialPrice() as int
myMCMerchantOffer.getSpecialPrice();
Name: getUses
Return Type: int
ZenScript Copy// MCMerchantOffer.getUses() as int
myMCMerchantOffer.getUses();
Name: hasBeenUsed
Return Type: boolean
ZenScript Copy// MCMerchantOffer.hasBeenUsed() as boolean
myMCMerchantOffer.hasBeenUsed();
Name: hasNoUsesLeft
Return Type: boolean
ZenScript Copy// MCMerchantOffer.hasNoUsesLeft() as boolean
myMCMerchantOffer.hasNoUsesLeft();
Name: increaseSpecialPrice
Return Type: void
ZenScript CopyMCMerchantOffer.increaseSpecialPrice(specialPrice as int) as void
Parameter | Type | Description |
---|---|---|
Parameter specialPrice | Type int | Description No Description Provided |
Name: increaseUses
Return Type: void
ZenScript Copy// MCMerchantOffer.increaseUses() as void
myMCMerchantOffer.increaseUses();
Return Type: void
ZenScript Copy// MCMerchantOffer.makeUnavailable() as void
myMCMerchantOffer.makeUnavailable();
Name: matches
Return Type: boolean
ZenScript CopyMCMerchantOffer.matches(a as IItemStack, b as IItemStack) as boolean
Parameter | Type | Description |
---|---|---|
Parameter a | Type IItemStack | Description No Description Provided |
Parameter b | Type IItemStack | Description No Description Provided |
Name: resetSpecialPrice
Return Type: void
ZenScript Copy// MCMerchantOffer.resetSpecialPrice() as void
myMCMerchantOffer.resetSpecialPrice();
Name: resetUses
Return Type: void
ZenScript Copy// MCMerchantOffer.resetUses() as void
myMCMerchantOffer.resetUses();
Name: setSpecialPrice
Return Type: void
ZenScript CopyMCMerchantOffer.setSpecialPrice(specialPrice as int) as void
Parameter | Type | Description |
---|---|---|
Parameter specialPrice | Type int | Description No Description Provided |
Name: write
Return Type: IData
ZenScript Copy// MCMerchantOffer.write() as IData
myMCMerchantOffer.write();
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Nombre buyingStackFirst | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Nombre buyingStackSecond | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Nombre copyOfSellingStack | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Nombre demand | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre discountedBuyingStackFirst | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Nombre doesRewardExp | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Nombre givenExp | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre hasBeenUsed | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Nombre hasNoUsesLeft | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Nombre maxUses | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre priceMultiplier | Type float | Has Getter true | Has Setter false | Description No Description Provided |
Nombre sellingStack | Type IItemStack | Has Getter true | Has Setter false | Description No Description Provided |
Nombre specialPrice | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Nombre uses | Type int | Has Getter true | Has Setter false | Description No Description Provided |