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
public 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 pFromItem, int pEmeraldCost, ItemStack pToItem, int pMaxUses, int pVillagerXp, float pPriceMultiplier, Optional<ResourceKey<EnchantmentProvider>> pEnchantmentProvider) ItemsAndEmeraldsToItems
(ItemLike pFromItem, int pFromItemCount, int pEmeraldCost, Item pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier) private
ItemsAndEmeraldsToItems
(ItemLike pFromItem, int pFromItemCount, int pEmeraldCost, ItemStack pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier) (package private)
ItemsAndEmeraldsToItems
(ItemLike pFromItem, int pFromItemAmount, int pEmeraldCost, ItemLike pToItem, int pToItemCount, int pMaxUses, int pVillagerXp, float pPriceMultiplier, ResourceKey<EnchantmentProvider> pEnchantmentProvider) -
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 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
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-