package mods.tinker.tconstruct.crystal; import java.util.ArrayList; import java.util.HashMap; import mods.tinker.tconstruct.library.util.ValueCoordTuple; import mods.tinker.tconstruct.library.util.CoordTuple; public class TheftValueTracker { public static HashMap crystallinity = new HashMap(); //public static HashMap> crystallinity = new HashMap>(); public static void updateCrystallinity (int dim, int posX, int posZ, int value) { ValueCoordTuple coord = new ValueCoordTuple(dim, posX / 16, posZ / 16); int crystal = crystallinity.get(coord); crystal += value; crystallinity.put(coord, crystal); /*ChunkCoordTuple tuple = new ChunkCoordTuple(posX / 16, posZ / 16); HashMap dimensionMap = crystallinity.get(world); if (dimensionMap.containsKey(tuple)) { int level = dimensionMap.get(tuple); level += value; dimensionMap.put(tuple, level); } else { System.out.println("[TConstruct] Missing Theft value data at "+tuple); HashMap crystalMap = TheftValueTracker.crystallinity.get(world); if (crystalMap == null) { crystalMap = new HashMap(); TheftValueTracker.crystallinity.put(world, crystalMap); } crystalMap.put(tuple, value); }*/ } }