public ItemMapping(IClientContext ctx) {
		super(ctx);
		final WrapperLoader<ItemDefinition> loader = ctx.definitions.system().itemLoader;
		// map of items ids to real id
		//try (PrintWriter items = new PrintWriter(new File("items.txt"))) {
		int id = 0;
		while (loader.canLoad(id)) {
			final ItemDefinition definition = loader.load(id);
			//if (definition.clientScriptData != null) {
			//items.println(definition);
			//}
			if (definition.lent) {
				map.put(id, definition.lentId);
			} else if (definition.noted) {
				map.put(id, definition.noteId);
			} else if (definition.cosmetic) {
				map.put(id, definition.cosmeticId);
			}
			// Exclude when id == id
			//map.put(definition.noteId, id);
			
			id++;
		}
		//} catch (FileNotFoundException e) {
		//	e.printStackTrace();
		//}
	}