Class VillagerTrades.EmeraldForItemsTrade
- java.lang.Object
-
- net.minecraft.entity.merchant.villager.VillagerTrades.EmeraldForItemsTrade
-
- All Implemented Interfaces:
VillagerTrades.ITrade
- Enclosing class:
- VillagerTrades
static class VillagerTrades.EmeraldForItemsTrade extends java.lang.Object implements VillagerTrades.ITrade
-
-
Field Summary
Fields Modifier and Type Field Description private int
cost
private Item
item
private int
maxUses
private float
priceMultiplier
private int
villagerXp
-
Constructor Summary
Constructors Constructor Description EmeraldForItemsTrade(IItemProvider p_i50539_1_, int p_i50539_2_, int p_i50539_3_, int p_i50539_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantOffer
getOffer(Entity p_221182_1_, java.util.Random p_221182_2_)
-
-
-
Field Detail
-
item
private final Item item
-
cost
private final int cost
-
maxUses
private final int maxUses
-
villagerXp
private final int villagerXp
-
priceMultiplier
private final float priceMultiplier
-
-
Constructor Detail
-
EmeraldForItemsTrade
public EmeraldForItemsTrade(IItemProvider p_i50539_1_, int p_i50539_2_, int p_i50539_3_, int p_i50539_4_)
-
-
Method Detail
-
getOffer
public MerchantOffer getOffer(Entity p_221182_1_, java.util.Random p_221182_2_)
- Specified by:
getOffer
in interfaceVillagerTrades.ITrade
-
-