TippedArrowForItemsAndEmeralds
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.
import crafttweaker.api.villager.trade.type.TippedArrowForItemsAndEmeralds;
Implements
TippedArrowForItemsAndEmeralds
implements the following interfaces:
Constructors
new(fromItem as Item, fromCount as int, toItem as Item, toCount as int, emeraldCost as int, maxUses as int, villagerXp as int)
// new TippedArrowForItemsAndEmeralds(fromItem as ItemDefinition, fromCount as int, toItem as ItemDefinition, toCount as int, emeraldCost as int, maxUses as int, villagerXp as int);new TippedArrowForItemsAndEmeralds(myItem, myInt, myItem, myInt, myInt, myInt, myInt);
Parameters:
fromItem: ItemDefinition
Type: ItemDefinition
- The Item that is being sold by the villager, that will have a random potion effect attached fromCount: int
Type: int
- The amount of the Item being sold to the villager toCount: int
Type: int
- The amount of the item that is being sold by the villager emeraldCost: int
Type: int
- How many emeralds will be given to the villager maxUses: int
Type: int
- How many times can this trade be used villagerXp: int
Type: int
- How much experience does this trade reward the villager Members
getOffer(traderEntity as Entity, random as RandomSource) as MerchantOffer
// TippedArrowForItemsAndEmeralds.getOffer(traderEntity as Entity, random as RandomSource) as MerchantOffer;myTippedArrowForItemsAndEmeralds.getOffer(myEntity, myRandomSource);
Parameters:
random: RandomSource
Type: RandomSource
Return Type:
MerchantOffer