BasicTradeListing

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.

script.zs
import crafttweaker.api.villager.trade.type.BasicTradeListing;

Implements

BasicTradeListing implements the following interfaces:

ItemListing

Undocumented Interfaces

IBasicItemListing

Constructors

new(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float)
script.zs
// new BasicTradeListing(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float);
new BasicTradeListing(myItemStack, myItemStack, myItemStack, myInt, myInt, myFloat);

Parameters:

price Type: ItemStack
price2 Type: ItemStack
forSale Type: ItemStack
maxTrades Type: int
xp Type: int
priceMult Type: float
new(price as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float)
script.zs
// new BasicTradeListing(price as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float);
new BasicTradeListing(myItemStack, myItemStack, myInt, myInt, myFloat);

Parameters:

price Type: ItemStack
forSale Type: ItemStack
maxTrades Type: int
xp Type: int
priceMult Type: float
new(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int, mult as float)
script.zs
// new BasicTradeListing(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int, mult as float);
new BasicTradeListing(myInt, myItemStack, myInt, myInt, myFloat);

Parameters:

emeralds Type: int
forSale Type: ItemStack
maxTrades Type: int
xp Type: int
mult Type: float
new(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int)
script.zs
// new BasicTradeListing(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int);
new BasicTradeListing(myInt, myItemStack, myInt, myInt);

Parameters:

emeralds Type: int
forSale Type: ItemStack
maxTrades Type: int
xp Type: int

Members

Getter
script.zs
// BasicTradeListing.forSale as ItemStack
myBasicTradeListing.forSale

Return Type: ItemStack

forSale() as ItemStack
script.zs
// BasicTradeListing.forSale() as ItemStack;
myBasicTradeListing.forSale();

Return Type: ItemStack

Getter
script.zs
// BasicTradeListing.maxTrades as int
myBasicTradeListing.maxTrades

Return Type: int

maxTrades() as int
script.zs
// BasicTradeListing.maxTrades() as int;
myBasicTradeListing.maxTrades();

Return Type: int

Getter
script.zs
// BasicTradeListing.price as ItemStack
myBasicTradeListing.price

Return Type: ItemStack

price() as ItemStack
script.zs
// BasicTradeListing.price() as ItemStack;
myBasicTradeListing.price();

Return Type: ItemStack

Getter
script.zs
// BasicTradeListing.price2 as ItemStack
myBasicTradeListing.price2

Return Type: ItemStack

price2() as ItemStack
script.zs
// BasicTradeListing.price2() as ItemStack;
myBasicTradeListing.price2();

Return Type: ItemStack

Getter
script.zs
// BasicTradeListing.priceMult as float
myBasicTradeListing.priceMult

Return Type: float

priceMult() as float
script.zs
// BasicTradeListing.priceMult() as float;
myBasicTradeListing.priceMult();

Return Type: float

Getter
script.zs
// BasicTradeListing.xp as int
myBasicTradeListing.xp

Return Type: int

xp() as int
script.zs
// BasicTradeListing.xp() as int;
myBasicTradeListing.xp();

Return Type: int