Class VillagerTrades.ItemsAndEmeraldsToItems

java.lang.Object
net.minecraft.world.entity.npc.VillagerTrades.ItemsAndEmeraldsToItems
All Implemented Interfaces:
VillagerTrades.ItemListing
Enclosing class:
VillagerTrades

static class VillagerTrades.ItemsAndEmeraldsToItems extends Object implements VillagerTrades.ItemListing
  • Field Details

    • fromItem

      private final ItemCost fromItem
    • emeraldCost

      private final int emeraldCost
    • toItem

      private final ItemStack toItem
    • maxUses

      private final int maxUses
    • villagerXp

      private final int villagerXp
    • priceMultiplier

      private final float priceMultiplier
    • enchantmentProvider

      private final Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider
  • Constructor Details

    • ItemsAndEmeraldsToItems

      public ItemsAndEmeraldsToItems(ItemLike fromItem, int fromItemCount, int emeraldCost, Item toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier)
    • ItemsAndEmeraldsToItems

      private ItemsAndEmeraldsToItems(ItemLike fromItem, int fromItemCount, int emeraldCost, ItemStack toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier)
    • ItemsAndEmeraldsToItems

      ItemsAndEmeraldsToItems(ItemLike fromItem, int fromItemAmount, int emeraldCost, ItemLike toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier, ResourceKey<EnchantmentProvider> enchantmentProvider)
    • ItemsAndEmeraldsToItems

      public ItemsAndEmeraldsToItems(ItemCost fromItem, int emeraldCost, ItemStack toItem, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider)
  • Method Details