/** * Register your type here, in pre-preInit! * * @param typeBase the instance you want to register * @throws IllegalArgumentException if the name has been taken */ public static void register(TypeBase typeBase) { if (map.put(typeBase.getName().toLowerCase(), typeBase) != null) throw new IllegalArgumentException("Duplicate type!"); }