Package net.minecraft.world.entity.npc
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Optional
<ResourceKey<EnchantmentProvider>> private final ItemCost
private final int
private final float
private final ItemStack
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionItemsAndEmeraldsToItems
(ItemCost fromItem, int emeraldCost, ItemStack toItem, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider) ItemsAndEmeraldsToItems
(ItemLike fromItem, int fromItemCount, int emeraldCost, Item toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier) private
ItemsAndEmeraldsToItems
(ItemLike fromItem, int fromItemCount, int emeraldCost, ItemStack toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier) (package private)
ItemsAndEmeraldsToItems
(ItemLike fromItem, int fromItemAmount, int emeraldCost, ItemLike toItem, int toItemCount, int maxUses, int villagerXp, float priceMultiplier, ResourceKey<EnchantmentProvider> enchantmentProvider) -
Method Summary
-
Field Details
-
fromItem
-
emeraldCost
private final int emeraldCost -
toItem
-
maxUses
private final int maxUses -
villagerXp
private final int villagerXp -
priceMultiplier
private final float priceMultiplier -
enchantmentProvider
-
-
Constructor Details
-
ItemsAndEmeraldsToItems
-
ItemsAndEmeraldsToItems
-
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
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-