aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2019-04-08 07:02:52 +0200
committerbartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com>2019-04-08 07:02:52 +0200
commit913a24fa383a5beaad83f0a8f5eb04ea55385d62 (patch)
treea3b6ea3f90f24cf185f59fdbdfd0fcddd37b2dec /src/main/java
parent5e7d6c24e5c0c4d799433a73abab6388a20bdd53 (diff)
downloadGT5-Unofficial-913a24fa383a5beaad83f0a8f5eb04ea55385d62.tar.gz
GT5-Unofficial-913a24fa383a5beaad83f0a8f5eb04ea55385d62.tar.bz2
GT5-Unofficial-913a24fa383a5beaad83f0a8f5eb04ea55385d62.zip
+added depts to build.grandle
Signed-off-by: bartimaeusnek <33183715+bartimaeusnek@users.noreply.github.com> Former-commit-id: 8d24914f14b9b5dcb799bd337e9c870a7774fdf1
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java2
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/ThreadedLoader.java74
2 files changed, 74 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
index 8bde0e73b4..f668e85b4f 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/MainMod.java
@@ -38,8 +38,6 @@ import com.github.bartimaeusnek.bartworks.common.net.BW_Network;
import com.github.bartimaeusnek.bartworks.system.material.Werkstoff;
import com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader;
import com.github.bartimaeusnek.bartworks.util.BW_Util;
-import com.github.bartimaeusnek.cropspp.ConfigValures;
-import com.github.bartimaeusnek.crossmod.galacticraft.planets.ross128.world.oregen.BW_WordGenerator;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.Mod;
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/ThreadedLoader.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/ThreadedLoader.java
new file mode 100644
index 0000000000..e6f80e5e95
--- /dev/null
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/ThreadedLoader.java
@@ -0,0 +1,74 @@
+///*
+// * Copyright (c) 2019 bartimaeusnek
+// *
+// * Permission is hereby granted, free of charge, to any person obtaining a copy
+// * of this software and associated documentation files (the "Software"), to deal
+// * in the Software without restriction, including without limitation the rights
+// * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// * copies of the Software, and to permit persons to whom the Software is
+// * furnished to do so, subject to the following conditions:
+// *
+// * The above copyright notice and this permission notice shall be included in all
+// * copies or substantial portions of the Software.
+// *
+// * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+// * SOFTWARE.
+// */
+//
+//package com.github.bartimaeusnek.bartworks.system.material;
+//
+//import com.github.bartimaeusnek.bartworks.MainMod;
+//import cpw.mods.fml.common.ProgressManager;
+//
+//import java.util.ArrayList;
+//import java.util.List;
+//
+//import static com.github.bartimaeusnek.bartworks.system.material.WerkstoffLoader.*;
+//
+//public class ThreadedLoader implements Runnable {
+//
+// List<Thread> threads = new ArrayList<>();
+//
+// @Override
+// public synchronized void run() {
+// threads.add(new AllRecipes());
+//
+// threads.forEach(Thread::start);
+//
+//
+// }
+//
+//
+// class AllRecipes extends Thread {
+//
+// public synchronized void run() {
+// MainMod.LOGGER.info("Loading Processing Recipes for BW Materials");
+// long timepre = System.nanoTime();
+// ProgressManager.ProgressBar progressBar = ProgressManager.push("Register BW Materials", Werkstoff.werkstoffHashMap.size());
+//
+// for (short i = 0; i < Werkstoff.werkstoffHashMap.size(); i++) {
+// Werkstoff werkstoff = Werkstoff.werkstoffHashMap.get(i);
+// if (werkstoff == null || werkstoff.getmID() < 0) {
+// progressBar.step("");
+// continue;
+// }
+// addDustRecipes(werkstoff);
+// addGemRecipes(werkstoff);
+// addOreRecipes(werkstoff);
+// addCrushedRecipes(werkstoff);
+// progressBar.step(werkstoff.getDefaultName());
+// }
+// ProgressManager.pop(progressBar);
+// long timepost = System.nanoTime();
+// MainMod.LOGGER.info("Loading Processing Recipes for BW Materials took " + (timepost - timepre) + "ns/" + ((timepost - timepre) / 1000000) + "ms/" + ((timepost - timepre) / 1000000000) + "s!");
+// }
+// }
+//
+//
+//
+//}