Class VillagerTrades.EmeraldForMapTrade
- java.lang.Object
-
- net.minecraft.entity.merchant.villager.VillagerTrades.EmeraldForMapTrade
-
- All Implemented Interfaces:
VillagerTrades.ITrade
- Enclosing class:
- VillagerTrades
static class VillagerTrades.EmeraldForMapTrade extends java.lang.Object implements VillagerTrades.ITrade
-
-
Field Summary
Fields Modifier and Type Field Description private Structure<?>
destination
private MapDecoration.Type
destinationType
private int
emeraldCost
private int
maxUses
private int
villagerXp
-
Constructor Summary
Constructors Constructor Description EmeraldForMapTrade(int p_i231575_1_, Structure<?> p_i231575_2_, MapDecoration.Type p_i231575_3_, int p_i231575_4_, int p_i231575_5_)
-
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
-
emeraldCost
private final int emeraldCost
-
destination
private final Structure<?> destination
-
destinationType
private final MapDecoration.Type destinationType
-
maxUses
private final int maxUses
-
villagerXp
private final int villagerXp
-
-
Constructor Detail
-
EmeraldForMapTrade
public EmeraldForMapTrade(int p_i231575_1_, Structure<?> p_i231575_2_, MapDecoration.Type p_i231575_3_, int p_i231575_4_, int p_i231575_5_)
-
-
Method Detail
-
getOffer
@Nullable public MerchantOffer getOffer(Entity p_221182_1_, java.util.Random p_221182_2_)
- Specified by:
getOffer
in interfaceVillagerTrades.ITrade
-
-