Class VillagerTrades.ItemsForEmeraldsAndItemsTrade
- java.lang.Object
-
- net.minecraft.entity.merchant.villager.VillagerTrades.ItemsForEmeraldsAndItemsTrade
-
- All Implemented Interfaces:
VillagerTrades.ITrade
- Enclosing class:
- VillagerTrades
static class VillagerTrades.ItemsForEmeraldsAndItemsTrade extends java.lang.Object implements VillagerTrades.ITrade
-
-
Field Summary
Fields Modifier and Type Field Description private int
emeraldCost
private int
fromCount
private ItemStack
fromItem
private int
maxUses
private float
priceMultiplier
private int
toCount
private ItemStack
toItem
private int
villagerXp
-
Constructor Summary
Constructors Constructor Description ItemsForEmeraldsAndItemsTrade(IItemProvider p_i50534_1_, int p_i50534_2_, int p_i50534_3_, Item p_i50534_4_, int p_i50534_5_, int p_i50534_6_, int p_i50534_7_)
ItemsForEmeraldsAndItemsTrade(IItemProvider p_i50533_1_, int p_i50533_2_, Item p_i50533_3_, int p_i50533_4_, int p_i50533_5_, int p_i50533_6_)
-
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
-
fromItem
private final ItemStack fromItem
-
fromCount
private final int fromCount
-
emeraldCost
private final int emeraldCost
-
toItem
private final ItemStack toItem
-
toCount
private final int toCount
-
maxUses
private final int maxUses
-
villagerXp
private final int villagerXp
-
priceMultiplier
private final float priceMultiplier
-
-
Constructor Detail
-
ItemsForEmeraldsAndItemsTrade
public ItemsForEmeraldsAndItemsTrade(IItemProvider p_i50533_1_, int p_i50533_2_, Item p_i50533_3_, int p_i50533_4_, int p_i50533_5_, int p_i50533_6_)
-
ItemsForEmeraldsAndItemsTrade
public ItemsForEmeraldsAndItemsTrade(IItemProvider p_i50534_1_, int p_i50534_2_, int p_i50534_3_, Item p_i50534_4_, int p_i50534_5_, int p_i50534_6_, int p_i50534_7_)
-
-
Method Detail
-
getOffer
@Nullable public MerchantOffer getOffer(Entity p_221182_1_, java.util.Random p_221182_2_)
- Specified by:
getOffer
in interfaceVillagerTrades.ITrade
-
-