Package net.minecraftforge.common
Class BasicTrade
java.lang.Object
net.minecraftforge.common.BasicTrade
- All Implemented Interfaces:
VillagerTrades.ItemListing
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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBasicTrade(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
-
Field Details
-
price
-
price2
-
forSale
-
maxTrades
protected final int maxTrades -
xp
protected final int xp -
priceMult
protected final float priceMult
-
-
Constructor Details
-
BasicTrade
-
BasicTrade
-
BasicTrade
-
BasicTrade
-
-
Method Details
-
getOffer
- Specified by:
getOffer
in interfaceVillagerTrades.ItemListing
-