package izzyaxel.arcaneartificing.main.helpers;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.server.MinecraftServer;

import java.util.List;
import java.util.UUID;

public class AAUUIDHelper
{
	private static AAUUIDHelper INSTANCE = new AAUUIDHelper();

	public static AAUUIDHelper getUUIDHelper()
	{
		return INSTANCE;
	}

	@SuppressWarnings("unchecked")
	private String getNameFromUUID(UUID ID)
	{
		String name = "";
		List<EntityPlayer> list = MinecraftServer.getServer().worldServers[0].playerEntities;
		for(EntityPlayer p : list)
		{
			if(ID.equals(p.getUniqueID()))
			{
				name = p.getDisplayName();
			}
		}
		return name;
	}
}
