@@ -56,38 +56,32 @@ public static void setupSmeltableItemLists() {
5656 Recipe recipe = it .next ();
5757
5858 if (recipe instanceof FurnaceRecipe ) {
59-
6059 if (((FurnaceRecipe )recipe ).getInputChoice () instanceof MaterialChoice ) {
6160 for (Material choice :
6261 ((MaterialChoice )((FurnaceRecipe )recipe ).getInputChoice ()).getChoices ()) {
6362 smeltableItems .put (choice , ((FurnaceRecipe )recipe ).getResult ());
6463 }
65- }
66- else {
64+ } else {
6765 smeltableItems .put (((FurnaceRecipe )recipe ).getInput ().getType (),
6866 ((FurnaceRecipe )recipe ).getResult ());
6967 }
70- }
71- else if (recipe instanceof BlastingRecipe ) {
68+ } else if (recipe instanceof BlastingRecipe ) {
7269 if (((BlastingRecipe )recipe ).getInputChoice () instanceof MaterialChoice ) {
7370 for (Material choice :
7471 ((MaterialChoice )((BlastingRecipe )recipe ).getInputChoice ()).getChoices ()) {
7572 blastSmeltableItems .put (choice , ((BlastingRecipe )recipe ).getResult ());
7673 }
77- }
78- else {
74+ } else {
7975 blastSmeltableItems .put (((BlastingRecipe )recipe ).getInput ().getType (),
8076 ((BlastingRecipe )recipe ).getResult ());
8177 }
82- }
83- else if (recipe instanceof CookingRecipe ) {
78+ } else if (recipe instanceof CookingRecipe ) {
8479 if (((CookingRecipe )recipe ).getInputChoice () instanceof MaterialChoice ) {
8580 for (Material choice :
8681 ((MaterialChoice )((CookingRecipe )recipe ).getInputChoice ()).getChoices ()) {
8782 cookableItems .put (choice , ((CookingRecipe )recipe ).getResult ());
8883 }
89- }
90- else {
84+ } else {
9185 cookableItems .put (((CookingRecipe )recipe ).getInput ().getType (),
9286 ((CookingRecipe )recipe ).getResult ());
9387 }
@@ -532,8 +526,7 @@ public static ItemStack getCookedResult(ItemStack item) {
532526
533527 if (cookableItems .containsKey (item .getType ())) {
534528 return new ItemStack (cookableItems .get (item .getType ()));
535- }
536- else {
529+ } else {
537530 return null ;
538531 }
539532 }
@@ -547,8 +540,7 @@ public static ItemStack getSmeltedResult(ItemStack item) {
547540
548541 if (smeltableItems .containsKey (item .getType ())) {
549542 return new ItemStack (smeltableItems .get (item .getType ()));
550- }
551- else {
543+ } else {
552544 return null ;
553545 }
554546 }
@@ -562,8 +554,7 @@ public static ItemStack getBlastSmeltedResult(ItemStack item) {
562554
563555 if (blastSmeltableItems .containsKey (item .getType ())) {
564556 return new ItemStack (blastSmeltableItems .get (item .getType ()));
565- }
566- else {
557+ } else {
567558 return null ;
568559 }
569560 }
0 commit comments