package net.hexogendev.hexogen.api;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

public class Build {

	public static final String UNKNOWN = "unknown";
	public static final int CURRENT_VERSION = VERSION_CODES.AIR;

	private static final List<String> map;

	static {
		map = new CopyOnWriteArrayList<String>();
		map.add(0, UNKNOWN);
		map.add(VERSION_CODES.AIR, "Air");
		map.add(VERSION_CODES.DIRT, "Dirt");
	}

	public static class VERSION_CODES {
		public static int AIR = 1;
		public static int DIRT = 2;
	}

	public static String getNameForInt(int id) {
		final String name = map.get(id);
		if (name == null) {
			return UNKNOWN;
		}
		return name;
	}
}

@@ -130,57 +130,8 @@
  %7B%0A%0A
-%09public static final String UNKNOWN = %22unknown%22;%0A
 %09pub
@@ -188,16 +188,16 @@
 ES.AIR;%0A
+
 %0A%09privat
@@ -298,18 +298,40 @@
 add(
-0, UNKNOWN
+VERSION_CODES.UNKNOWN, %22Unknown%22
 );%0A%09
@@ -446,16 +446,49 @@
 CODES %7B%0A
+%09%09public static int UNKNOWN = 0;%0A
 %09%09public
@@ -655,23 +655,26 @@
 %09return 
-UNKNOWN
+map.get(0)
 ;%0A%09%09%7D%0A%09%09

Add new version "Unknown"