BasicTradeListing

Link to basictradelisting

Importare la Classe

Link to importare-la-classe

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
Copy
import crafttweaker.api.villager.trade.type.BasicTradeListing;

Interfacce Implementate

Link to interfacce-implementate

BasicTradeListing implements the following interfaces. That means all methods defined in these interfaces are also available in BasicTradeListing

ZenScript
Copy
new BasicTradeListing(emeralds as int, forSale as ItemStack, maxTrades as int, xp as int) as BasicTradeListing
ParametroTipo
Parametro
emeralds
Tipo
int
Parametro
forSale
Tipo
ItemStack
Parametro
maxTrades
Tipo
int
Parametro
xp
Tipo
int
ZenScript
Copy
new BasicTradeListing(price as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float) as BasicTradeListing
ParametroTipo
Parametro
price
Tipo
ItemStack
Parametro
forSale
Tipo
ItemStack
Parametro
maxTrades
Tipo
int
Parametro
xp
Tipo
int
Parametro
priceMult
Tipo
float
ZenScript
Copy
new BasicTradeListing(price as ItemStack, price2 as ItemStack, forSale as ItemStack, maxTrades as int, xp as int, priceMult as float) as BasicTradeListing
ParametroTipo
Parametro
price
Tipo
ItemStack
Parametro
price2
Tipo
ItemStack
Parametro
forSale
Tipo
ItemStack
Parametro
maxTrades
Tipo
int
Parametro
xp
Tipo
int
Parametro
priceMult
Tipo
float

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();
NomeTipoHa GetterHa Setter
Nome
forSale
Tipo
ItemStack
Ha Getter
Ha Setter
no
Nome
maxTrades
Tipo
int
Ha Getter
Ha Setter
no
Nome
price
Tipo
ItemStack
Ha Getter
Ha Setter
no
Nome
price2
Tipo
ItemStack
Ha Getter
Ha Setter
no
Nome
priceMult
Tipo
float
Ha Getter
Ha Setter
no
Nome
xp
Tipo
int
Ha Getter
Ha Setter
no