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
-
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 item, int emeraldCost, int numberOfItems, int villagerXp) ItemsForEmeralds
(Item item, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) ItemsForEmeralds
(Item item, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier) ItemsForEmeralds
(Item item, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier, ResourceKey<EnchantmentProvider> enchantmentProvider) ItemsForEmeralds
(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) ItemsForEmeralds
(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier) ItemsForEmeralds
(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider) ItemsForEmeralds
(Block block, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) -
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 block, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) -
ItemsForEmeralds
-
ItemsForEmeralds
-
ItemsForEmeralds
public ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp) -
ItemsForEmeralds
public ItemsForEmeralds(Item item, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier) -
ItemsForEmeralds
public ItemsForEmeralds(Item item, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier, ResourceKey<EnchantmentProvider> enchantmentProvider) -
ItemsForEmeralds
public ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier) -
ItemsForEmeralds
public ItemsForEmeralds(ItemStack itemStack, int emeraldCost, int numberOfItems, int maxUses, int villagerXp, float priceMultiplier, Optional<ResourceKey<EnchantmentProvider>> enchantmentProvider)
-
-
Method Details
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-