DyedArmorForEmeralds
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.
import crafttweaker.api.villager.trade.type.DyedArmorForEmeralds;
Implemented Interfaces
DyedArmorForEmeralds implements the following interfaces. That means all methods defined in these interfaces are also available in DyedArmorForEmeralds
Constructors
new DyedArmorForEmeralds(item as ItemDefinition, value as int) as DyedArmorForEmeraldsnew DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16);
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description The Item that is being sold by the villager, dyed a random color |
Parameter value | Type int | Description How many emeralds will this trade cost |
new DyedArmorForEmeralds(item as ItemDefinition, value as int, maxUses as int, villagerXp as int) as DyedArmorForEmeraldsnew DyedArmorForEmeralds(<item:minecraft:leather_chestplate>, 16, 8, 2);
Parameter | Type | Description |
---|---|---|
Parameter item | Type ItemDefinition | Description The Item that is being sold by the villager, dyed a random color |
Parameter value | Type int | Description How many emeralds will this trade cost |
Parameter maxUses | Type int | Description How many times can this trade be used |
Parameter villagerXp | Type int | Description How much experience does this trade reward the villager |