Package net.minecraft.src
Class MerchantRecipe
java.lang.Object
net.minecraft.src.MerchantRecipe
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMerchantRecipe(ItemStack par1ItemStack, Item par2Item) MerchantRecipe(ItemStack inputStack, Item outputItem, int iTradeLevel) MerchantRecipe(ItemStack par1ItemStack, ItemStack par2ItemStack) MerchantRecipe(ItemStack inputStack, ItemStack outputStack, int iTradeLevel) MerchantRecipe(ItemStack par1ItemStack, ItemStack par2ItemStack, ItemStack par3ItemStack) MerchantRecipe(ItemStack inputStack1, ItemStack inputStack2, ItemStack outputStack, int iTradeLevel) MerchantRecipe(NBTTagCompound par1NBTTagCompound) -
Method Summary
Modifier and TypeMethodDescriptionvoidfunc_82783_a(int par1) booleanvoidGets the itemToBuy.Gets itemToSell.Gets secondItemToBuy.booleanhasSameIDsAs(MerchantRecipe par1MerchantRecipe) checks if both the first and second ItemToBuy IDs are the samebooleanhasSameItemsAs(MerchantRecipe par1MerchantRecipe) checks first and second ItemToBuy ID's and count.booleanGets if Villager has secondItemToBuy.voidbooleanvoidreadFromTags(NBTTagCompound par1NBTTagCompound) void
-
Field Details
-
tradeLevel
public int tradeLevel
-
-
Constructor Details
-
MerchantRecipe
-
MerchantRecipe
-
MerchantRecipe
-
MerchantRecipe
-
MerchantRecipe
-
MerchantRecipe
-
MerchantRecipe
-
-
Method Details
-
getItemToBuy
Gets the itemToBuy. -
getSecondItemToBuy
Gets secondItemToBuy. -
hasSecondItemToBuy
public boolean hasSecondItemToBuy()Gets if Villager has secondItemToBuy. -
getItemToSell
Gets itemToSell. -
hasSameIDsAs
checks if both the first and second ItemToBuy IDs are the same -
hasSameItemsAs
checks first and second ItemToBuy ID's and count. Calls hasSameIDs -
incrementToolUses
public void incrementToolUses() -
func_82783_a
public void func_82783_a(int par1) -
func_82784_g
public boolean func_82784_g() -
func_82785_h
public void func_82785_h() -
readFromTags
-
writeToTags
-
isMandatory
public boolean isMandatory() -
setMandatory
public void setMandatory()
-