Package net.minecraft.world.entity.npc
Class VillagerTrades.ItemsForEmeralds
java.lang.Object
net.minecraft.world.entity.npc.VillagerTrades.ItemsForEmeralds
- All Implemented Interfaces:
VillagerTrades.ItemListing
- Enclosing class:
VillagerTrades
public static class VillagerTrades.ItemsForEmeralds
extends Object
implements VillagerTrades.ItemListing
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Optional
<ResourceKey<EnchantmentProvider>> private final ItemStack
private final int
private final float
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionItemsForEmeralds
(Item pItem, int pEmeraldCost, int pNumberOfItems, int pVillagerXp) ItemsForEmeralds
(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) ItemsForEmeralds
(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier) ItemsForEmeralds
(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier, ResourceKey<EnchantmentProvider> pEnchantmentProvider) ItemsForEmeralds
(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) ItemsForEmeralds
(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier) ItemsForEmeralds
(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier, Optional<ResourceKey<EnchantmentProvider>> pEnchantmentProvider) ItemsForEmeralds
(Block pBlock, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) -
Method Summary
-
Field Details
-
itemStack
-
emeraldCost
private final int emeraldCost -
maxUses
private final int maxUses -
villagerXp
private final int villagerXp -
priceMultiplier
private final float priceMultiplier -
enchantmentProvider
-
-
Constructor Details
-
ItemsForEmeralds
public ItemsForEmeralds(Block pBlock, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) -
ItemsForEmeralds
-
ItemsForEmeralds
public ItemsForEmeralds(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) -
ItemsForEmeralds
public ItemsForEmeralds(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp) -
ItemsForEmeralds
public ItemsForEmeralds(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier) -
ItemsForEmeralds
public ItemsForEmeralds(Item pItem, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier, ResourceKey<EnchantmentProvider> pEnchantmentProvider) -
ItemsForEmeralds
public ItemsForEmeralds(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier) -
ItemsForEmeralds
public ItemsForEmeralds(ItemStack pItemStack, int pEmeraldCost, int pNumberOfItems, int pMaxUses, int pVillagerXp, float pPriceMultiplier, Optional<ResourceKey<EnchantmentProvider>> pEnchantmentProvider)
-
-
Method Details
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-