Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static HashMap<Integer, Integer> woodBlockRegistry = new HashMap<Integer, Integer>();
- public static boolean isWood(int i) { return woodBlockRegistry.containsValue(i); }
- public static void addWoodBlock(int i) {
- int j = 0;
- do {
- if(woodBlockRegistry.get(j) != null) {
- j++;
- continue;
- } else {
- woodBlockRegistry.put(j, i);
- break;
- }
- } while(true);
- }
Add Comment
Please, Sign In to add comment