Added getter for Metadata smelting list, because, why not.. PR: #352

This commit is contained in:
LexManos 2013-01-01 21:53:41 -08:00
parent 170585960b
commit c523592522

View file

@ -28,7 +28,7 @@
public ItemStack getSmeltingResult(int par1) public ItemStack getSmeltingResult(int par1)
{ {
return (ItemStack)this.smeltingList.get(Integer.valueOf(par1)); return (ItemStack)this.smeltingList.get(Integer.valueOf(par1));
@@ -65,8 +71,58 @@ @@ -65,8 +71,63 @@
return this.smeltingList; return this.smeltingList;
} }
@ -85,5 +85,10 @@
+ ret = ((Float)experienceList.get(item.itemID)).floatValue(); + ret = ((Float)experienceList.get(item.itemID)).floatValue();
+ } + }
+ return (ret < 0 ? 0 : ret); + return (ret < 0 ? 0 : ret);
+ }
+
+ public Map<List<Integer>, ItemStack> getMetaSmeltingList()
+ {
+ return metaSmeltingList;
+ } + }
} }