public class MerchantRecipe
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ItemStack |
itemToBuy |
private ItemStack |
itemToSell |
private int |
maxTradeUses |
private boolean |
rewardsExp |
private ItemStack |
secondItemToBuy |
private int |
toolUses |
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() |
ItemStack |
getItemToBuy() |
ItemStack |
getItemToSell() |
int |
getMaxTradeUses() |
boolean |
getRewardsExp() |
ItemStack |
getSecondItemToBuy() |
int |
getToolUses() |
boolean |
hasSecondItemToBuy() |
void |
increaseMaxTradeUses(int increment) |
void |
incrementToolUses() |
boolean |
isRecipeDisabled() |
void |
readFromTags(NBTTagCompound tagCompound) |
NBTTagCompound |
writeToTags() |
private ItemStack itemToBuy
private ItemStack secondItemToBuy
private ItemStack itemToSell
private int toolUses
private int maxTradeUses
private boolean rewardsExp
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()
public boolean getRewardsExp()
public void readFromTags(NBTTagCompound tagCompound)
public NBTTagCompound writeToTags()