Class ExpandEmeraldsForVillagerTypeItem

java.lang.Object
com.blamejared.crafttweaker.natives.villager.trade.type.ExpandEmeraldsForVillagerTypeItem

@ZenRegister public class ExpandEmeraldsForVillagerTypeItem extends Object
  • 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 cost
      maxUses - How many times this trade can be used
      villagerXp - How much experience does this trade reward the villager
      trades - A map of VillagerType to Item trades
      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>}