mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 13:42:59 +00:00 
			
		
		
		
	god forgive me, for I have sinned
This commit is contained in:
		| @@ -11,7 +11,7 @@ | |||||||
|       "conditions": { |       "conditions": { | ||||||
|         "items": [ |         "items": [ | ||||||
|           { |           { | ||||||
|             "tag": "forge:dusts/redstone" |             "tag": "c:redstone_dusts" | ||||||
|           } |           } | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:ingots/gold" |       "tag": "c:gold_ingots" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|         "# #" |         "# #" | ||||||
|     ], |     ], | ||||||
|     "key": { |     "key": { | ||||||
|         "#": { "tag": "forge:ingots/gold" }, |         "#": { "tag": "c:gold_ingots" }, | ||||||
|         "C": { "item": "computercraft:computer_normal" } |         "C": { "item": "computercraft:computer_normal" } | ||||||
|     }, |     }, | ||||||
|     "family": "advanced", |     "family": "advanced", | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:ingots/gold" |       "tag": "c:gold_ingots" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "item": "minecraft:command_block" |       "item": "minecraft:command_block" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ | |||||||
|   "group": "computercraft:disk", |   "group": "computercraft:disk", | ||||||
|   "ingredients": [ |   "ingredients": [ | ||||||
|     { |     { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     { |     { | ||||||
|       "item": "minecraft:paper" |       "item": "minecraft:paper" | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:ingots/gold" |       "tag": "c:gold_ingots" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:ingots/gold" |       "tag": "c:gold_ingots" | ||||||
|     }, |     }, | ||||||
|     "A": { |     "A": { | ||||||
|       "item": "minecraft:golden_apple" |       "item": "minecraft:golden_apple" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ | |||||||
|         "# #" |         "# #" | ||||||
|     ], |     ], | ||||||
|     "key": { |     "key": { | ||||||
|         "#": { "tag": "forge:ingots/gold" }, |         "#": { "tag": "c:gold_ingots" }, | ||||||
|         "C": { "item": "computercraft:pocket_computer_normal" } |         "C": { "item": "computercraft:pocket_computer_normal" } | ||||||
|     }, |     }, | ||||||
|     "family": "advanced", |     "family": "advanced", | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "A": { |     "A": { | ||||||
|       "item": "minecraft:golden_apple" |       "item": "minecraft:golden_apple" | ||||||
|     }, |     }, | ||||||
|     "G": { |     "G": { | ||||||
|       "tag": "forge:glass_panes" |       "tag": "c:glass_panes" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,14 +7,29 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     }, |     }, | ||||||
|     "D": { |     "D": [ | ||||||
|       "tag": "forge:dyes" |         {"tag": "c:black_dyes"}, | ||||||
|     } |         {"tag": "c:blue_dyes"}, | ||||||
|  |         {"tag": "c:brown_dyes"}, | ||||||
|  |         {"tag": "c:cyan_dyes"}, | ||||||
|  |         {"tag": "c:gray_dyes"}, | ||||||
|  |         {"tag": "c:green_dyes"}, | ||||||
|  |         {"tag": "c:light_blue_dyes"}, | ||||||
|  |         {"tag": "c:light_gray_dyes"}, | ||||||
|  |         {"tag": "c:lime_dyes"}, | ||||||
|  |         {"tag": "c:magenta_dyes"}, | ||||||
|  |         {"tag": "c:orange_dyes"}, | ||||||
|  |         {"tag": "c:pink_dyes"}, | ||||||
|  |         {"tag": "c:purple_dyes"}, | ||||||
|  |         {"tag": "c:red_dyes"}, | ||||||
|  |         {"tag": "c:white_dyes"}, | ||||||
|  |         {"tag": "c:yellow_dyes"} | ||||||
|  |     ] | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|     "item": "computercraft:printer" |     "item": "computercraft:printer" | ||||||
|   | |||||||
| @@ -7,13 +7,13 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "N": { |     "N": { | ||||||
|       "item": "minecraft:note_block" |       "item": "minecraft:note_block" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -6,9 +6,9 @@ | |||||||
|         "#I#" |         "#I#" | ||||||
|     ], |     ], | ||||||
|     "key": { |     "key": { | ||||||
|         "#": { "tag": "forge:ingots/gold" }, |         "#": { "tag": "c:gold_ingots" }, | ||||||
|         "C": { "item": "computercraft:computer_advanced" }, |         "C": { "item": "computercraft:computer_advanced" }, | ||||||
|         "I": { "tag": "forge:chests/wooden" } |         "I": { "tag": "c:wooden_chests" } | ||||||
|     }, |     }, | ||||||
|     "family": "advanced", |     "family": "advanced", | ||||||
|     "result": { "item": "computercraft:turtle_advanced" } |     "result": { "item": "computercraft:turtle_advanced" } | ||||||
|   | |||||||
| @@ -6,8 +6,8 @@ | |||||||
|         " B " |         " B " | ||||||
|     ], |     ], | ||||||
|     "key": { |     "key": { | ||||||
|         "#": { "tag": "forge:ingots/gold" }, |         "#": { "tag": "c:gold_ingots" }, | ||||||
|         "B": { "tag": "forge:storage_blocks/gold" }, |         "B": { "tag": "c:gold_blocks" }, | ||||||
|         "C": { "item": "computercraft:turtle_normal" } |         "C": { "item": "computercraft:turtle_normal" } | ||||||
|     }, |     }, | ||||||
|     "family": "advanced", |     "family": "advanced", | ||||||
|   | |||||||
| @@ -6,9 +6,9 @@ | |||||||
|         "#I#" |         "#I#" | ||||||
|     ], |     ], | ||||||
|     "key": { |     "key": { | ||||||
|         "#": { "tag": "forge:ingots/iron" }, |         "#": { "tag": "c:iron_ingotsiron" }, | ||||||
|         "C": { "item": "computercraft:computer_normal" }, |         "C": { "item": "computercraft:computer_normal" }, | ||||||
|         "I": { "tag": "forge:chests/wooden" } |         "I": { "tag": "c:wooden_chests" } | ||||||
|     }, |     }, | ||||||
|     "family": "normal", |     "family": "normal", | ||||||
|     "result": { "item": "computercraft:turtle_normal" } |     "result": { "item": "computercraft:turtle_normal" } | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "R": { |     "R": { | ||||||
|       "tag": "forge:dusts/redstone" |       "tag": "c:redstone_dusts" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
| @@ -7,7 +7,7 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:ingots/gold" |       "tag": "c:gold_ingots" | ||||||
|     }, |     }, | ||||||
|     "E": { |     "E": { | ||||||
|       "item": "minecraft:ender_eye" |       "item": "minecraft:ender_eye" | ||||||
|   | |||||||
| @@ -7,10 +7,10 @@ | |||||||
|   ], |   ], | ||||||
|   "key": { |   "key": { | ||||||
|     "#": { |     "#": { | ||||||
|       "tag": "forge:stone" |       "tag": "c:stones" | ||||||
|     }, |     }, | ||||||
|     "E": { |     "E": { | ||||||
|       "tag": "forge:ender_pearls" |       "tag": "c:ender_pearls" | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   "result": { |   "result": { | ||||||
|   | |||||||
							
								
								
									
										74
									
								
								src/test/java/badhtmlparser/BadHtmlParser.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										74
									
								
								src/test/java/badhtmlparser/BadHtmlParser.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,74 @@ | |||||||
|  | package badhtmlparser; | ||||||
|  |  | ||||||
|  | import java.io.BufferedReader; | ||||||
|  | import java.io.FileNotFoundException; | ||||||
|  | import java.io.FileOutputStream; | ||||||
|  | import java.io.InputStreamReader; | ||||||
|  | import java.io.PrintStream; | ||||||
|  | import java.util.Iterator; | ||||||
|  |  | ||||||
|  | import com.google.common.collect.HashMultimap; | ||||||
|  | import com.google.common.collect.Iterators; | ||||||
|  | import com.google.common.collect.Multimap; | ||||||
|  | import com.google.common.collect.PeekingIterator; | ||||||
|  |  | ||||||
|  | public class BadHtmlParser { | ||||||
|  |     private static final Multimap<String, String> IDS = HashMultimap.create(); | ||||||
|  |  | ||||||
|  |     public static void main(String[] args) throws FileNotFoundException { | ||||||
|  |         BufferedReader reader = new BufferedReader(new InputStreamReader(BadHtmlParser.class.getResourceAsStream("/tags.html"))); | ||||||
|  |         PeekingIterator<String> iterator = Iterators.peekingIterator(reader.lines() | ||||||
|  |                                                                            .iterator()); | ||||||
|  |         while (iterator.hasNext()) { | ||||||
|  |             String str = iterator.peek(); | ||||||
|  |             try { | ||||||
|  |                 int count = Integer.parseInt(str); | ||||||
|  |                 iterator.next(); | ||||||
|  |                 write(iterator, count); | ||||||
|  |             } catch (NumberFormatException e) { | ||||||
|  |                 write(iterator, 1); | ||||||
|  |             } | ||||||
|  |         } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |         System.out.println(IDS); | ||||||
|  |         print("white_dyes"); | ||||||
|  |         print("orange_dyes"); | ||||||
|  |         print("magenta_dyes"); | ||||||
|  |         print("light_blue_dyes"); | ||||||
|  |         print("yellow_dyes"); | ||||||
|  |         print("lime_dyes"); | ||||||
|  |         print("pink_dyes"); | ||||||
|  |         print("gray_dyes"); | ||||||
|  |         print("light_gray_dyes"); | ||||||
|  |         print("cyan_dyes"); | ||||||
|  |         print("purple_dyes"); | ||||||
|  |         print("blue_dyes"); | ||||||
|  |         print("brown_dyes"); | ||||||
|  |         print("green_dyes"); | ||||||
|  |         print("red_dyes"); | ||||||
|  |         print("black_dyes"); | ||||||
|  |  | ||||||
|  |         // todo replace dyes by hand | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private static void print(String val) throws FileNotFoundException { | ||||||
|  |         FileOutputStream fos = new FileOutputStream("src/main/resources/data/c/tags/items/" + val + ".json"); | ||||||
|  |         PrintStream stream = new PrintStream(fos); | ||||||
|  |         stream.println("{\"replace\": false,\"values\":["); | ||||||
|  |         Iterator<String> iterator = IDS.get("c:" + val) | ||||||
|  |                                        .iterator(); | ||||||
|  |         while (iterator.hasNext()) { | ||||||
|  |             String s = iterator.next(); | ||||||
|  |             stream.printf("\"%s\"%s", s, iterator.hasNext() ? ',' : ""); | ||||||
|  |         } | ||||||
|  |         stream.println("]}"); | ||||||
|  |     } | ||||||
|  |  | ||||||
|  |     private static void write(Iterator<String> str, int entries) { | ||||||
|  |         String tag = str.next(); | ||||||
|  |         for (int i = 0; i < entries; i++) { | ||||||
|  |             IDS.put(tag, str.next()); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | } | ||||||
							
								
								
									
										1823
									
								
								src/test/resources/tags.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1823
									
								
								src/test/resources/tags.html
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user
	 Devan-Kerman
					Devan-Kerman