public Map<String, Object> serialize() {
Map<String, Object> config = new HashMap<String, Object>();
config.put("slots", this.toIntList(contents.keySet()));
for (Integer slot : contents.keySet()) {
ItemStack stack = contents.get(slot);
config.put(slot.toString(), stack.serialize());
}
config.put("permission", permission);
return config;
}