- Added /mt recipes command

- Added /mt recipes hand command
- Removed COMMAND: in front of lines generated from commands
This commit is contained in:
Stan Hebben committed 2014-10-08 23:23:17 +02:00
1 parent f5e467e9a4
commit 9fcf4b9a4e
25 files changed
+617 -42

No files matched your search

@@ -80,6 +80,26 @@ public class ShapelessRecipe implements ICraftingRecipe {
}
}
@Override
public String toCommandString() {
StringBuilder result = new StringBuilder();
result.append("recipes.addShapeless(");
result.append(output);
result.append(", [");
for (int i = 0; i < ingredients.length; i++) {
if (i > 0)
result.append(", ");
result.append(ingredients[i]);
}
result.append("]);");
return result.toString();
}
/**
* Reorders ingredients to match the given shapeless recipe.
*