|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.src.MerchantRecipe
public class MerchantRecipe
Constructor Summary | |
---|---|
MerchantRecipe(ItemStack par1ItemStack,
Item par2Item)
|
|
MerchantRecipe(ItemStack par1ItemStack,
ItemStack par2ItemStack)
|
|
MerchantRecipe(ItemStack par1ItemStack,
ItemStack par2ItemStack,
ItemStack par3ItemStack)
|
|
MerchantRecipe(NBTTagCompound par1NBTTagCompound)
|
Method Summary | |
---|---|
ItemStack |
getItemToBuy()
Gets the itemToBuy. |
ItemStack |
getItemToSell()
Gets itemToSell. |
ItemStack |
getSecondItemToBuy()
Gets secondItemToBuy. |
int |
getToolUses()
|
boolean |
hasSameIDsAs(MerchantRecipe par1MerchantRecipe)
checks if both the first and second ItemToBuy IDs are the same |
boolean |
hasSameItemsAs(MerchantRecipe par1MerchantRecipe)
checks first and second ItemToBuy ID's and count. |
boolean |
hasSecondItemToBuy()
Gets if Villager has secondItemToBuy. |
void |
incrementToolUses()
|
void |
readFromTags(NBTTagCompound par1NBTTagCompound)
|
NBTTagCompound |
writeToTags()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MerchantRecipe(NBTTagCompound par1NBTTagCompound)
public MerchantRecipe(ItemStack par1ItemStack, ItemStack par2ItemStack, ItemStack par3ItemStack)
public MerchantRecipe(ItemStack par1ItemStack, ItemStack par2ItemStack)
public MerchantRecipe(ItemStack par1ItemStack, Item par2Item)
Method Detail |
---|
public ItemStack getItemToBuy()
public ItemStack getSecondItemToBuy()
public boolean hasSecondItemToBuy()
public ItemStack getItemToSell()
public boolean hasSameIDsAs(MerchantRecipe par1MerchantRecipe)
public boolean hasSameItemsAs(MerchantRecipe par1MerchantRecipe)
public int getToolUses()
public void incrementToolUses()
public void readFromTags(NBTTagCompound par1NBTTagCompound)
public NBTTagCompound writeToTags()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |