public class MerchantRecipe
extends java.lang.Object
Constructor and Description |
---|
MerchantRecipe(ItemStack buy1,
Item sellItem) |
MerchantRecipe(ItemStack buy1,
ItemStack sell) |
MerchantRecipe(ItemStack buy1,
ItemStack buy2,
ItemStack sell) |
MerchantRecipe(ItemStack buy1,
ItemStack buy2,
ItemStack sell,
int toolUsesIn,
int maxTradeUsesIn) |
MerchantRecipe(NBTTagCompound tagCompound) |
Modifier and Type | Method and Description |
---|---|
void |
compensateToolUses()
Compensates
toolUses with maxTradeUses |
ItemStack |
getItemToBuy()
Gets the itemToBuy.
|
ItemStack |
getItemToSell()
Gets itemToSell.
|
int |
getMaxTradeUses() |
boolean |
getRewardsExp() |
ItemStack |
getSecondItemToBuy()
Gets secondItemToBuy.
|
int |
getToolUses() |
boolean |
hasSecondItemToBuy()
Gets if Villager has secondItemToBuy.
|
void |
increaseMaxTradeUses(int increment) |
void |
incrementToolUses() |
boolean |
isRecipeDisabled() |
void |
readFromTags(NBTTagCompound tagCompound) |
NBTTagCompound |
writeToTags() |
public MerchantRecipe(NBTTagCompound tagCompound)
public MerchantRecipe(ItemStack buy1, ItemStack buy2, ItemStack sell, int toolUsesIn, int maxTradeUsesIn)
public ItemStack getItemToBuy()
public ItemStack getSecondItemToBuy()
public boolean hasSecondItemToBuy()
public ItemStack getItemToSell()
public int getToolUses()
public int getMaxTradeUses()
public void incrementToolUses()
public void increaseMaxTradeUses(int increment)
public boolean isRecipeDisabled()
public void compensateToolUses()
toolUses
with maxTradeUses
public boolean getRewardsExp()
public void readFromTags(NBTTagCompound tagCompound)
public NBTTagCompound writeToTags()