// Path: src/main/java/com/m4thg33k/tombmanygraves/util/LogHelper.java
// public class LogHelper {
// 	
// 	private static final Logger LOGGER = LogManager.getLogger(Names.MODID);
// 
//     public static void log(Level logLevel, Object object)
//     {
//     	LOGGER.log(logLevel, "[" + Names.MODNAME + "]: " + String.valueOf(object));
//     }
// 
//     public static void all(Object object)
//     {
//         log(Level.ALL, object);
//     }
// 
//     public static void debug(Object object)
//     {
//         log(Level.DEBUG, object);
//     }
// 
//     public static void error(Object object)
//     {
//         log(Level.ERROR, object);
//     }
// 
//     public static void fatal(Object object)
//     {
//         log(Level.FATAL, object);
//     }
// 
//     public static void info(Object object)
//     {
//         log(Level.INFO, object);
//     }
// 
//     public static void off(Object object)
//     {
//         log(Level.OFF, object);
//     }
// 
//     public static void trace(Object object)
//     {
//         log(Level.TRACE, object);
//     }
// 
//     public static void warn(Object object)
//     {
//         log(Level.WARN, object);
//     }
// }


import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.UUID;
import com.m4thg33k.tombmanygraves.util.LogHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
package com.m4thg33k.tombmanygraves.friends;




public class FriendHandler {
    private static String PREFIX = "./TombManyGraves";
    private static String FILE = "./TombManyGraves/friends.fdat";
    private static HashMap<UUID, HashSet<UUID>> friendList;

    @SuppressWarnings("unchecked")
	public static void importFriendsList()
    {
        friendList = null;
        try
        {
            checkFilePath();
            FileInputStream fileIn = new FileInputStream(FILE);
            ObjectInputStream in = new ObjectInputStream(fileIn);
            friendList = (HashMap<UUID, HashSet<UUID>>) in.readObject();
            in.close();
            fileIn.close();
// Path: src/main/java/com/m4thg33k/tombmanygraves/util/LogHelper.java
// public class LogHelper {
// 	
// 	private static final Logger LOGGER = LogManager.getLogger(Names.MODID);
// 
//     public static void log(Level logLevel, Object object)
//     {
//     	LOGGER.log(logLevel, "[" + Names.MODNAME + "]: " + String.valueOf(object));
//     }
// 
//     public static void all(Object object)
//     {
//         log(Level.ALL, object);
//     }
// 
//     public static void debug(Object object)
//     {
//         log(Level.DEBUG, object);
//     }
// 
//     public static void error(Object object)
//     {
//         log(Level.ERROR, object);
//     }
// 
//     public static void fatal(Object object)
//     {
//         log(Level.FATAL, object);
//     }
// 
//     public static void info(Object object)
//     {
//         log(Level.INFO, object);
//     }
// 
//     public static void off(Object object)
//     {
//         log(Level.OFF, object);
//     }
// 
//     public static void trace(Object object)
//     {
//         log(Level.TRACE, object);
//     }
// 
//     public static void warn(Object object)
//     {
//         log(Level.WARN, object);
//     }
// }


// Path: src/main/java/com/m4thg33k/tombmanygraves/friends/FriendHandler.java
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.UUID;
import com.m4thg33k.tombmanygraves.util.LogHelper;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.text.TextComponentString;
import net.minecraftforge.event.entity.EntityJoinWorldEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

package com.m4thg33k.tombmanygraves.friends;




public class FriendHandler {
    private static String PREFIX = "./TombManyGraves";
    private static String FILE = "./TombManyGraves/friends.fdat";
    private static HashMap<UUID, HashSet<UUID>> friendList;

    @SuppressWarnings("unchecked")
	public static void importFriendsList()
    {
        friendList = null;
        try
        {
            checkFilePath();
            FileInputStream fileIn = new FileInputStream(FILE);
            ObjectInputStream in = new ObjectInputStream(fileIn);
            friendList = (HashMap<UUID, HashSet<UUID>>) in.readObject();
            in.close();
            fileIn.close();
            LogHelper.info("Successfully loaded the friend list.");