mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-24 22:14:31 +00:00
23 lines
955 B
Java
23 lines
955 B
Java
package mods.tinker.tconstruct.crystal;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.HashMap;
|
|
|
|
import mods.tinker.tconstruct.library.util.ChunkCoordTuple;
|
|
|
|
public class TheftValueTracker
|
|
{
|
|
public static HashMap<ChunkCoordTuple, ArrayList> chunkMap = new HashMap<ChunkCoordTuple, ArrayList>();
|
|
//public static HashMap<ChunkCoordTuple, Integer> crystallinity = new HashMap<ChunkCoordTuple, Integer>();
|
|
public static HashMap<Integer, HashMap<ChunkCoordTuple, Integer>> crystallinity = new HashMap<Integer, HashMap<ChunkCoordTuple, Integer>>();
|
|
|
|
public static void updateCrystallinity(int posX, int posZ, int world, int value)
|
|
{
|
|
ChunkCoordTuple tuple = new ChunkCoordTuple((int)Math.floor(posX/16), (int)Math.floor(posZ/16));
|
|
HashMap<ChunkCoordTuple, Integer> dimensionMap = crystallinity.get(world);
|
|
int level = dimensionMap.get(tuple);
|
|
level += value;
|
|
dimensionMap.put(tuple, level);
|
|
}
|
|
}
|