mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-26 14:53:03 +00:00
- Added /mt recipes command
- Added /mt recipes hand command - Removed COMMAND: in front of lines generated from commands
This commit is contained in:
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.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user