BasicTradeListing
Link to basictradelisting
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.trade.type.BasicTradeListing;
Implemented Interfaces
Link to implemented-interfaces
BasicTradeListing implements the following interfaces. That means all methods defined in these interfaces are also available in BasicTradeListing
Constructors
Link to constructors
ZenScript Copynew BasicTradeListing(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int) as BasicTradeListing
Parameter | Type |
---|---|
Parameter emeralds | Type int |
Parameter forSale | Type Pila de objetos |
Parameter maxTrades | Type int |
Parameter xp | Type int |
ZenScript Copynew BasicTradeListing(price as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float) as BasicTradeListing
Parameter | Type |
---|---|
Parameter price | Type Pila de objetos |
Parameter forSale | Type Pila de objetos |
Parameter maxTrades | Type int |
Parameter xp | Type int |
Parameter priceMult | Type float |
ZenScript Copynew BasicTradeListing(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float) as BasicTradeListing
Parameter | Type |
---|---|
Parameter price | Type Pila de objetos |
Parameter price2 | Type Pila de objetos |
Parameter forSale | Type Pila de objetos |
Parameter maxTrades | Type int |
Parameter xp | Type int |
Parameter priceMult | Type float |
Methods
Link to methods
Name: getForSale
Return Type: ItemStack
ZenScript Copy// BasicTradeListing.getForSale() as ItemStack
myBasicTradeListing.getForSale();
Name: getMaxTrades
Return Type: int
ZenScript Copy// BasicTradeListing.getMaxTrades() as int
myBasicTradeListing.getMaxTrades();
Name: getPrice
Return Type: ItemStack
ZenScript Copy// BasicTradeListing.getPrice() as ItemStack
myBasicTradeListing.getPrice();
Name: getPrice2
Return Type: ItemStack
ZenScript Copy// BasicTradeListing.getPrice2() as ItemStack
myBasicTradeListing.getPrice2();
Name: getPriceMult
Return Type: float
ZenScript Copy// BasicTradeListing.getPriceMult() as float
myBasicTradeListing.getPriceMult();
Name: getXp
Return Type: int
ZenScript Copy// BasicTradeListing.getXp() as int
myBasicTradeListing.getXp();
Properties
Link to properties
Nombre | Type | Has Getter | Has Setter |
---|---|---|---|
Nombre forSale | Type Pila de objetos | Has Getter true | Has Setter false |
Nombre maxTrades | Type int | Has Getter true | Has Setter false |
Nombre price | Type Pila de objetos | Has Getter true | Has Setter false |
Nombre price2 | Type Pila de objetos | Has Getter true | Has Setter false |
Nombre priceMult | Type float | Has Getter true | Has Setter false |
Nombre xp | Type int | Has Getter true | Has Setter false |