Package net.minecraftforge.common
Class BasicTrade
- java.lang.Object
-
- net.minecraftforge.common.BasicTrade
-
- All Implemented Interfaces:
VillagerTrades.ITrade
public class BasicTrade extends java.lang.Object implements VillagerTrades.ITrade
A default, exposed implementation of ITrade. All of the other implementations of ITrade (in VillagerTrades) are not public. This class contains everything needed to make a MerchantOffer, the actual "trade" object shown in trading guis.
-
-
Constructor Summary
Constructors Constructor Description BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp)
BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult)
BasicTrade(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult)
BasicTrade(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MerchantOffer
getOffer(Entity merchant, java.util.Random rand)
-
-
-
Constructor Detail
-
BasicTrade
public BasicTrade(ItemStack price, ItemStack price2, ItemStack forSale, int maxTrades, int xp, float priceMult)
-
BasicTrade
public BasicTrade(ItemStack price, ItemStack forSale, int maxTrades, int xp, float priceMult)
-
BasicTrade
public BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp, float mult)
-
BasicTrade
public BasicTrade(int emeralds, ItemStack forSale, int maxTrades, int xp)
-
-
Method Detail
-
getOffer
@Nullable public MerchantOffer getOffer(Entity merchant, java.util.Random rand)
- Specified by:
getOffer
in interfaceVillagerTrades.ITrade
-
-