serialize

public static FileConfiguration serialize(String identifier, ItemStack itemStack, FileConfiguration fileConfiguration)