aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2023-10-17 13:57:35 +0900
committermiozune <miozune@gmail.com>2023-10-17 17:39:55 +0900
commit144b09fe97a89fc9033fd5ec6be899adcefc2046 (patch)
tree56b53b90fb5506f49ce61ece599aef64da021b13 /src/main/java/gtPlusPlus
parent2dfd919122df9a9bb9a3acac5d0ab154a250293f (diff)
downloadGT5-Unofficial-144b09fe97a89fc9033fd5ec6be899adcefc2046.tar.gz
GT5-Unofficial-144b09fe97a89fc9033fd5ec6be899adcefc2046.tar.bz2
GT5-Unofficial-144b09fe97a89fc9033fd5ec6be899adcefc2046.zip
Remove AC_Helper_Utils which is actually never updated
Diffstat (limited to 'src/main/java/gtPlusPlus')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java54
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java13
2 files changed, 0 insertions, 67 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java
deleted file mode 100644
index a3c33f0290..0000000000
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/helpers/autocrafter/AC_Helper_Utils.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package gtPlusPlus.xmod.gregtech.common.helpers.autocrafter;
-
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-
-import gtPlusPlus.api.objects.Logger;
-import gtPlusPlus.xmod.gregtech.common.tileentities.machines.multi.production.GT4Entity_AutoCrafter;
-
-public class AC_Helper_Utils {
-
- // AC maps
- public static final Map<Integer, GT4Entity_AutoCrafter> sAutocrafterMap = new HashMap<Integer, GT4Entity_AutoCrafter>();
-
- // Add Crafter
- public static final int addCrafter(GT4Entity_AutoCrafter AC) {
- if (!sAutocrafterMap.containsValue(AC)) {
- int increase = sAutocrafterMap.size() + 1;
- sAutocrafterMap.put(increase, AC);
- Logger.INFO("[A-C] " + "Added Auto-Crafter to index on position " + increase + ".");
- return increase;
- } else {
- Logger.INFO("[A-C] Tried adding an Auto-Crafter to Index, but found one already there.");
- }
- return 0;
- }
-
- public static final boolean removeCrafter(GT4Entity_AutoCrafter AC) {
- if (!sAutocrafterMap.isEmpty()) {
- if (sAutocrafterMap.containsValue(AC)) {
- sAutocrafterMap.remove(getIDByCrafter(AC));
- return true;
- }
- }
- return false;
- }
-
- public static final int getIDByCrafter(GT4Entity_AutoCrafter AC) {
- if (!sAutocrafterMap.isEmpty()) {
- Set<Entry<Integer, GT4Entity_AutoCrafter>> players = sAutocrafterMap.entrySet();
- Iterator<Entry<Integer, GT4Entity_AutoCrafter>> i = players.iterator();
- while (i.hasNext()) {
- Entry<Integer, GT4Entity_AutoCrafter> current = i.next();
- if (current.getValue().equals(AC)) {
- return current.getKey();
- }
- }
- }
- Logger.WARNING("Failed. [getIDByCrafter]");
- return 0;
- }
-}
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
index e37a6783f5..25fe69da96 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/GT4Entity_AutoCrafter.java
@@ -30,7 +30,6 @@ import gregtech.api.util.GT_Utility;
import gtPlusPlus.core.block.ModBlocks;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.xmod.gregtech.api.metatileentity.implementations.base.GregtechMeta_MultiBlockBase;
-import gtPlusPlus.xmod.gregtech.common.helpers.autocrafter.AC_Helper_Utils;
public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity_AutoCrafter>
implements ISurvivalConstructable {
@@ -180,18 +179,6 @@ public class GT4Entity_AutoCrafter extends GregtechMeta_MultiBlockBase<GT4Entity
}
@Override
- public void explodeMultiblock() {
- AC_Helper_Utils.removeCrafter(this);
- super.explodeMultiblock();
- }
-
- @Override
- public void doExplosion(long aExplosionPower) {
- AC_Helper_Utils.removeCrafter(this);
- super.doExplosion(aExplosionPower);
- }
-
- @Override
public boolean supportsInputSeparation() {
return true;
}