public class MerchantRecipeList extends ArrayList
Constructor and Description |
---|
MerchantRecipeList() |
MerchantRecipeList(NBTTagCompound par1NBTTagCompound) |
Modifier and Type | Method and Description |
---|---|
void |
addToListWithCheck(MerchantRecipe par1MerchantRecipe)
checks if there is a recipie for the same ingredients already on the list, and replaces it.
|
MerchantRecipe |
canRecipeBeUsed(ItemStack par1ItemStack,
ItemStack par2ItemStack,
int par3)
can par1,par2 be used to in crafting recipe par3
|
NBTTagCompound |
getRecipiesAsTags() |
static MerchantRecipeList |
readRecipiesFromStream(DataInputStream par0DataInputStream) |
void |
readRecipiesFromTags(NBTTagCompound par1NBTTagCompound) |
void |
writeRecipiesToStream(DataOutputStream par1DataOutputStream) |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
containsAll, equals, hashCode
public MerchantRecipeList()
public MerchantRecipeList(NBTTagCompound par1NBTTagCompound)
public MerchantRecipe canRecipeBeUsed(ItemStack par1ItemStack, ItemStack par2ItemStack, int par3)
public void addToListWithCheck(MerchantRecipe par1MerchantRecipe)
public void writeRecipiesToStream(DataOutputStream par1DataOutputStream) throws IOException
IOException
public static MerchantRecipeList readRecipiesFromStream(DataInputStream par0DataInputStream) throws IOException
IOException
public void readRecipiesFromTags(NBTTagCompound par1NBTTagCompound)
public NBTTagCompound getRecipiesAsTags()