77
88import net .minecraft .item .ItemStack ;
99
10- import com .cleanroommc .groovyscript .helper .ingredient .IngredientHelper ;
10+ import com .cleanroommc .groovyscript .helper .ingredient .GroovyScriptCodeConverter ;
1111import com .cleanroommc .groovyscript .helper .ingredient .NbtHelper ;
1212
1313public class GrSRecipeHelper {
@@ -20,7 +20,7 @@ public static String getRecipeRemoveLine(RecipeMap<?> recipeMap, Recipe recipe)
2020 .append (recipe .getEUt ())
2121 .append (", " );
2222
23- if (recipe .getInputs ().size () > 0 ) {
23+ if (! recipe .getInputs ().isEmpty () ) {
2424 builder .append ("[" );
2525 for (GTRecipeInput ci : recipe .getInputs ()) {
2626 String ingredient = getGroovyItemString (ci );
@@ -32,10 +32,10 @@ public static String getRecipeRemoveLine(RecipeMap<?> recipeMap, Recipe recipe)
3232 builder .append ("null, " );
3333 }
3434
35- if (recipe .getFluidInputs ().size () > 0 ) {
35+ if (! recipe .getFluidInputs ().isEmpty () ) {
3636 builder .append ("[" );
3737 for (GTRecipeInput fluidIngredient : recipe .getFluidInputs ()) {
38- builder .append (IngredientHelper .asGroovyCode (fluidIngredient .getInputFluidStack (), false ));
38+ builder .append (GroovyScriptCodeConverter .asGroovyCode (fluidIngredient .getInputFluidStack (), false ));
3939
4040 if (fluidIngredient .getAmount () > 1 ) {
4141 builder .append (" * " )
@@ -72,7 +72,7 @@ public static String getGroovyItemString(GTRecipeInput recipeInput) {
7272 }
7373 if (itemStack != null ) {
7474 if (itemId == null ) {
75- builder .append (IngredientHelper .asGroovyCode (itemStack , false ));
75+ builder .append (GroovyScriptCodeConverter .asGroovyCode (itemStack , false ));
7676 }
7777
7878 if (itemStack .getTagCompound () != null ) {
0 commit comments