Complete refactoring to move Recipes into Items

* Changed "version" to "dataVersion" in data format
* Changed the "modName" and "modVersion" fields on the ModVersion
  class to remove the "mod" prefix and changed the data format to
  match
* Change the Stack class to use the itemSlug instead of the item
  itself
* Update the ModVersion and ModPack classes to include methods for
  recording a correspondence between slugs and names. Update code
  which displays items from stacks to use these methods to determine
  display names.
* Add a reference from Recipe back to the item it creates
This commit is contained in:
Andrew Miner
2015-01-03 20:08:11 -08:00
parent 392c410df8
commit 0d25ac723d
24 changed files with 260 additions and 285 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "Applied Energetics",
"mod_version": "rv-12b",
"dataVersion": 1,
"name": "Applied Energetics",
"version": "rv-12b",
"description": "Crafting recipes from Applied Energetics, by AlgorithmX2",
"recipes": [
{
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "BuildCraft",
"mod_version": "3.0",
"dataVersion": 1,
"name": "BuildCraft",
"version": "3.0",
"description": "Crafting recipes from BuildCraft, by SpaceToad",
"recipes": [
{
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "GraviSuite",
"mod_version": "unknown",
"dataVersion": 1,
"name": "GraviSuite",
"version": "1.0",
"description": "Crafting recipes from GraviSuite, by flotschi301",
"recipes": [
{
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "Industrial Craft",
"mod_version": "2.0",
"dataVersion": 1,
"name": "Industrial Craft",
"version": "2.0",
"description": "Crafting recipes from IndustrialCraft, by Alblaka",
"recipes": [
{
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "Minecraft",
"mod_version": "1.7.10",
"dataVersion": 1,
"name": "Minecraft",
"version": "1.7.10",
"description": "Crafting recipes from vanilla Minecraft",
"raw_materials": [
"Coal",
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "MoreBlocks",
"mod_version": "1.0",
"dataVersion": 1,
"name": "MoreBlocks",
"version": "1.0",
"description": "Crafting recipes from More Blocks Mod, by MCE626",
"recipes": [
{
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 1,
"mod_name": "Thermal Expansion",
"mod_version": "2.x",
"dataVersion": 1,
"name": "Thermal Expansion",
"version": "2.x",
"description": "Crafting Recipes from Thermal Expansion, by King Lemming and the CoFH team",
"recipes": [
{