DyedArmorForEmeralds
Link to dyedarmorforemeralds
导入类
Link to 导入类
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.DyedArmorForEmeralds;
已实现的接口
Link to 已实现的接口
DyedArmorForEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in DyedArmorForEmeralds
Constructor #构造函数
Link to constructor-构造函数
ZenScript Copynew DyedArmorForEmeralds(item as ItemDefinition, value as int) as DyedArmorForEmeralds
new DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16);
参数 | 类型 | 描述 |
---|---|---|
参数 item | 类型 ItemDefinition | 描述 The Item that is being sold by the villager, dyed a random color |
参数 value | 类型 int | 描述 How many emeralds will this trade cost |
ZenScript Copynew DyedArmorForEmeralds(item as ItemDefinition, value as int, maxUses as int, villagerXp as int) as DyedArmorForEmeralds
new DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16, 8, 2);
参数 | 类型 | 描述 |
---|---|---|
参数 item | 类型 ItemDefinition | 描述 The Item that is being sold by the villager, dyed a random color |
参数 value | 类型 int | 描述 How many emeralds will this trade cost |
参数 maxUses | 类型 int | 描述 How many times can this trade be used |
参数 villagerXp | 类型 int | 描述 How much experience does this trade reward the villager |