Class VillagerTrades.ItemsAndEmeraldsToItems

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

public 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 pFromItem, int pFromItemCount, int pEmeraldCost, Item pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier)
    • ItemsAndEmeraldsToItems

      private ItemsAndEmeraldsToItems(ItemLike pFromItem, int pFromItemCount, int pEmeraldCost, ItemStack pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier)
    • ItemsAndEmeraldsToItems

      ItemsAndEmeraldsToItems(ItemLike pFromItem, int pFromItemAmount, int pEmeraldCost, ItemLike pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier, ResourceKey<EnchantmentProvider> pEnchantmentProvider)
    • ItemsAndEmeraldsToItems

      public ItemsAndEmeraldsToItems(ItemCost pFromItem, int pEmeraldCost, ItemStack pToItem, int pMaxUses, int pVillagerXp, float pPriceMultiplier, Optional<ResourceKey<EnchantmentProvider>> pEnchantmentProvider)
  • Method Details