OSDN Git Service

修正・変更
[chemicraft/chemicraft.git] / common / pcc / chemicraft / system / ChemiCraftCraftingManager.java
index ab390a3..899fe83 100644 (file)
@@ -17,10 +17,11 @@ import pcc.chemicraft.util.ComparatorFormulaPart;
 import pcc.chemicraft.util.ComparatorItemStack;
 import pcc.chemicraft.util.FormulaPart;
 
+
 public class ChemiCraftCraftingManager {
 
        public ItemStack getToolAndWeaponCraftingResult(InventoryToolAndWeaponCraftingTableMaterial par1IInventory){
-               ChemiCraftAPI api = ChemiCraftAPI.getInstance();
+               ChemiCraftAPI api = ChemiCraftAPI.instance();
                ArrayList<ItemStack[]> materials = api.getToolAndWeaponMaterials();
                ArrayList<ItemStack> result = api.getToolAndWeaponResult();
                ArrayList<Boolean> sharpless = api.getToolAndWeaponSharpless();
@@ -66,7 +67,7 @@ public class ChemiCraftCraftingManager {
 
 
        public ItemStack getChemicalCombinationResult(ArrayList<String> atomsList, ArrayList<Integer> atomsAmountList){
-               ChemiCraftAPI api = ChemiCraftAPI.getInstance();
+               ChemiCraftAPI api = ChemiCraftAPI.instance();
                recipeSize :
                        for (int i = 0; i < api.getChemicalCombinationAtoms().size(); i++) {
                                FormulaPart[] var1 = new FormulaPart[atomsList.size()];
@@ -95,7 +96,7 @@ public class ChemiCraftCraftingManager {
 
 
        public ChemicalNBTRecipe chemicalCrafting(InventoryChemicalCraftingMaterial par1IInventory, InventoryChemicalCraftingResult par2IInventory, InventoryChemicalCraftingNBT par3IInventory){
-               ChemiCraftAPI api = ChemiCraftAPI.getInstance();
+               ChemiCraftAPI api = ChemiCraftAPI.instance();
                ChemicalNBTRecipe returnObj = null;
                for(int i = 0;i < api.getMaterialRecipe().size();i++){
                        ItemStack result = api.getMaterialRecipe().get(i).match(par1IInventory);