Recipes for interface and relay
This commit is contained in:
		| @@ -69,8 +69,8 @@ public class CommonProxy | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.DESTRUCTOR, "destructor"); | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.CONSTRUCTOR, "constructor"); | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.STORAGE, ItemBlockStorage.class, "storage"); | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.RELAY, "relay"); // @TODO: Recipe | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.INTERFACE, "interface"); // @TODO: Recipe | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.RELAY, "relay"); | ||||
| 		GameRegistry.registerBlock(RefinedStorageBlocks.INTERFACE, "interface"); | ||||
|  | ||||
| 		GameRegistry.registerItem(RefinedStorageItems.STORAGE_CELL, "storage_cell"); | ||||
| 		GameRegistry.registerItem(RefinedStorageItems.WIRELESS_GRID, "wireless_grid"); | ||||
| @@ -124,6 +124,13 @@ public class CommonProxy | ||||
| 			new ItemStack(Items.quartz) | ||||
| 		); | ||||
|  | ||||
| 		// Relay | ||||
| 		GameRegistry.addShapelessRecipe(new ItemStack(RefinedStorageBlocks.RELAY), | ||||
| 			new ItemStack(RefinedStorageItems.PROCESSOR, 1, ItemProcessor.TYPE_BASIC), | ||||
| 			new ItemStack(RefinedStorageBlocks.MACHINE_CASING), | ||||
| 			new ItemStack(RefinedStorageBlocks.CABLE) | ||||
| 		); | ||||
|  | ||||
| 		// Controller | ||||
| 		GameRegistry.addRecipe(new ItemStack(RefinedStorageBlocks.CONTROLLER, 1, EnumControllerType.NORMAL.getId()), | ||||
| 			"EDE", | ||||
| @@ -347,6 +354,9 @@ public class CommonProxy | ||||
| 		SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_4K, ItemStoragePart.TYPE_4K)); | ||||
| 		SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_16K, ItemStoragePart.TYPE_16K)); | ||||
| 		SoldererRegistry.addRecipe(new SoldererRecipeStorage(EnumStorageType.TYPE_64K, ItemStoragePart.TYPE_64K)); | ||||
|  | ||||
| 		// Interface | ||||
| 		SoldererRegistry.addRecipe(new SoldererRecipeInterface()); | ||||
| 	} | ||||
|  | ||||
| 	public void init(FMLInitializationEvent e) | ||||
|   | ||||
| @@ -0,0 +1,40 @@ | ||||
| package refinedstorage.tile.solderer; | ||||
|  | ||||
| import net.minecraft.item.ItemStack; | ||||
| import refinedstorage.RefinedStorageBlocks; | ||||
| import refinedstorage.RefinedStorageItems; | ||||
| import refinedstorage.item.ItemProcessor; | ||||
|  | ||||
| public class SoldererRecipeInterface implements ISoldererRecipe | ||||
| { | ||||
| 	@Override | ||||
| 	public ItemStack getRow(int row) | ||||
| 	{ | ||||
| 		if (row == 0) | ||||
| 		{ | ||||
| 			return new ItemStack(RefinedStorageBlocks.IMPORTER); | ||||
| 		} | ||||
| 		else if (row == 1) | ||||
| 		{ | ||||
| 			return new ItemStack(RefinedStorageItems.PROCESSOR, 1, ItemProcessor.TYPE_ADVANCED); | ||||
| 		} | ||||
| 		else if (row == 2) | ||||
| 		{ | ||||
| 			return new ItemStack(RefinedStorageBlocks.EXPORTER); | ||||
| 		} | ||||
|  | ||||
| 		return null; | ||||
| 	} | ||||
|  | ||||
| 	@Override | ||||
| 	public ItemStack getResult() | ||||
| 	{ | ||||
| 		return new ItemStack(RefinedStorageBlocks.INTERFACE); | ||||
| 	} | ||||
|  | ||||
| 	@Override | ||||
| 	public int getDuration() | ||||
| 	{ | ||||
| 		return 200; | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 Raoul Van den Berge
					Raoul Van den Berge