Class ExpandEmeraldsForVillagerTypeItem
java.lang.Object
com.blamejared.crafttweaker.natives.villager.trade.type.ExpandEmeraldsForVillagerTypeItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.entity.npc.VillagerTrades.EmeraldsForVillagerTypeItemcreate(int cost, int maxUses, int villagerXp, Map<net.minecraft.world.entity.npc.VillagerType, IItemStack> trades) Creates a new EmeraldsForVillagerTypeItem trade
-
Constructor Details
-
ExpandEmeraldsForVillagerTypeItem
public ExpandEmeraldsForVillagerTypeItem()
-
-
Method Details
-
create
public static net.minecraft.world.entity.npc.VillagerTrades.EmeraldsForVillagerTypeItem create(int cost, int maxUses, int villagerXp, Map<net.minecraft.world.entity.npc.VillagerType, IItemStack> trades) Creates a new EmeraldsForVillagerTypeItem trade- Parameters:
cost- How many emeralds should the map costmaxUses- How many times this trade can be usedvillagerXp- How much experience does this trade reward the villagertrades- A map ofVillagerTypetoItemtrades- Returns:
- A new EmeraldsForVillagerTypeItem
- DocParam:
- cost 1, maxUses 16, villagerXp 2, trades {invalid input: '<'villagertype:minecraft:desert>: invalid input: '<'item:minecraft:sand>, invalid input: '<'villagertype:minecraft:plains>: invalid input: '<'item:minecraft:dirt>}
-