// Path: src/main/java/com/m4thg33k/tombmanygraves/gui/containers/ContainerInventoryFileManager.java
// public class ContainerInventoryFileManager extends BaseContainer {
// 
//     protected EntityPlayer player;
// 
//     public ContainerInventoryFileManager(EntityPlayer player){
//         this.player = player;
//     }
// 
//     public List<String> getFileNames()
//     {
// //        LogHelper.info("Getting file names inside container");
//         return DeathInventoryHandler.getSavedInventories();
//     }
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/network/PacketProbeFiles.java
// public class PacketProbeFiles extends BaseThreadsafePacket{
// 
//     private BlockPos pos;
//     private int dimension;
//     private UUID uuid;
// 
//     public PacketProbeFiles()
//     {
// 
//     }
// 
//     public PacketProbeFiles(int dimension, UUID playerUUID, BlockPos pos)
//     {
//         this.dimension = dimension;
//         this.pos = pos;
//         this.uuid = playerUUID;
//     }
// 
//     @Override
//     public void handleClientSafe(NetHandlerPlayClient netHandler) {
//         throw new UnsupportedOperationException("Server-side only!");
//     }
// 
//     @Override
//     public void handleServerSafe(NetHandlerPlayServer netHandler) {
//         List<String> files = TombManyGraves.proxy.probeForFiles(pos);
// //        LogHelper.info("I've received the files in PacketProbeFiles");
//         WorldServer server = DimensionManager.getWorld(dimension);
//         TMGNetwork.sendTo(new PacketFileNames(pos, files), (EntityPlayerMP)server.getPlayerEntityByUUID(uuid));
//     }
// 
//     @Override
//     public void toBytes(ByteBuf buf) {
//         writePos(pos, buf);
//         buf.writeInt(dimension);
//         ByteBufUtils.writeUTF8String(buf, uuid.toString());
//     }
// 
//     @Override
//     public void fromBytes(ByteBuf buf) {
//         pos = readPos(buf);
//         dimension = buf.readInt();
//         uuid = UUID.fromString(ByteBufUtils.readUTF8String(buf));
//     }
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/network/TMGNetwork.java
// public class TMGNetwork {
// 
//     public static TMGNetwork instance = new TMGNetwork();
// 
//     public final SimpleNetworkWrapper network;
//     protected final BasePacketHandler handler;
//     private int id = 0;
// 
//     public TMGNetwork(){
//         network = NetworkRegistry.INSTANCE.newSimpleChannel(Names.MODID);
//         handler = new BasePacketHandler();
//     }
// 
//     public void registerPacket(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketClient(packetClass);
//         registerPacketServer(packetClass);
//     }
// 
//     public static void registerPacketClient(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketImp(packetClass, Side.CLIENT);
//     }
// 
//     public static void registerPacketServer(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketImp(packetClass, Side.SERVER);
//     }
// 
//     public static void registerPacketImp(Class<? extends BasePacket> packetClass, Side side)
//     {
//         instance.network.registerMessage(instance.handler, packetClass, instance.id++, side);
//     }
// 
//     public static void setup()
//     {
//         //register packets here
//         registerPacketServer(PacketProbeFiles.class);
//         registerPacketClient(GraveRenderTogglePacket.class);
//         registerPacketClient(GravePosTogglePacket.class);
//     }
// 
//     public static void sendToAll(BasePacket packet)
//     {
//         instance.network.sendToAll(packet);
//     }
// 
//     public static void sendTo(BasePacket packet, EntityPlayerMP player)
//     {
//         instance.network.sendTo(packet, player);
//     }
// 
//     public static void sendToAllAround(BasePacket packet, NetworkRegistry.TargetPoint point)
//     {
//         instance.network.sendToAllAround(packet, point);
//     }
// 
//     public static void sendToDimension(BasePacket packet, int dimensionID)
//     {
//         instance.network.sendToDimension(packet, dimensionID);
//     }
// 
//     public static void sendToServer(BasePacket packet)
//     {
//         instance.network.sendToServer(packet);
//     }
// 
//     public static void sendToClients(WorldServer world, BlockPos pos, BasePacket packet)
//     {
//         Chunk chunk = world.getChunkFromBlockCoords(pos);
//         for (EntityPlayer player : world.playerEntities)
//         {
//             if (!(player instanceof EntityPlayerMP))
//             {
//                 continue;
//             }
//             EntityPlayerMP playerMP = (EntityPlayerMP) player;
//             if (world.getPlayerChunkMap().isPlayerWatchingChunk(playerMP, chunk.x, chunk.z))
//             {
// //                LogHelper.info("Sending packet to: " + player.getName());
//                 TMGNetwork.sendTo(packet, playerMP);
//             }
//         }
//     }
// }


import java.util.ArrayList;
import java.util.List;
import com.m4thg33k.tombmanygraves.gui.containers.ContainerInventoryFileManager;
import com.m4thg33k.tombmanygraves.network.PacketProbeFiles;
import com.m4thg33k.tombmanygraves.network.TMGNetwork;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.EntityPlayer;
package com.m4thg33k.tombmanygraves.client.gui;




public class InventoryFileManagerGui extends ModBaseContainerGui {

    protected EntityPlayer player;
// Path: src/main/java/com/m4thg33k/tombmanygraves/gui/containers/ContainerInventoryFileManager.java
// public class ContainerInventoryFileManager extends BaseContainer {
// 
//     protected EntityPlayer player;
// 
//     public ContainerInventoryFileManager(EntityPlayer player){
//         this.player = player;
//     }
// 
//     public List<String> getFileNames()
//     {
// //        LogHelper.info("Getting file names inside container");
//         return DeathInventoryHandler.getSavedInventories();
//     }
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/network/PacketProbeFiles.java
// public class PacketProbeFiles extends BaseThreadsafePacket{
// 
//     private BlockPos pos;
//     private int dimension;
//     private UUID uuid;
// 
//     public PacketProbeFiles()
//     {
// 
//     }
// 
//     public PacketProbeFiles(int dimension, UUID playerUUID, BlockPos pos)
//     {
//         this.dimension = dimension;
//         this.pos = pos;
//         this.uuid = playerUUID;
//     }
// 
//     @Override
//     public void handleClientSafe(NetHandlerPlayClient netHandler) {
//         throw new UnsupportedOperationException("Server-side only!");
//     }
// 
//     @Override
//     public void handleServerSafe(NetHandlerPlayServer netHandler) {
//         List<String> files = TombManyGraves.proxy.probeForFiles(pos);
// //        LogHelper.info("I've received the files in PacketProbeFiles");
//         WorldServer server = DimensionManager.getWorld(dimension);
//         TMGNetwork.sendTo(new PacketFileNames(pos, files), (EntityPlayerMP)server.getPlayerEntityByUUID(uuid));
//     }
// 
//     @Override
//     public void toBytes(ByteBuf buf) {
//         writePos(pos, buf);
//         buf.writeInt(dimension);
//         ByteBufUtils.writeUTF8String(buf, uuid.toString());
//     }
// 
//     @Override
//     public void fromBytes(ByteBuf buf) {
//         pos = readPos(buf);
//         dimension = buf.readInt();
//         uuid = UUID.fromString(ByteBufUtils.readUTF8String(buf));
//     }
// }
// 
// Path: src/main/java/com/m4thg33k/tombmanygraves/network/TMGNetwork.java
// public class TMGNetwork {
// 
//     public static TMGNetwork instance = new TMGNetwork();
// 
//     public final SimpleNetworkWrapper network;
//     protected final BasePacketHandler handler;
//     private int id = 0;
// 
//     public TMGNetwork(){
//         network = NetworkRegistry.INSTANCE.newSimpleChannel(Names.MODID);
//         handler = new BasePacketHandler();
//     }
// 
//     public void registerPacket(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketClient(packetClass);
//         registerPacketServer(packetClass);
//     }
// 
//     public static void registerPacketClient(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketImp(packetClass, Side.CLIENT);
//     }
// 
//     public static void registerPacketServer(Class<? extends BasePacket> packetClass)
//     {
//         registerPacketImp(packetClass, Side.SERVER);
//     }
// 
//     public static void registerPacketImp(Class<? extends BasePacket> packetClass, Side side)
//     {
//         instance.network.registerMessage(instance.handler, packetClass, instance.id++, side);
//     }
// 
//     public static void setup()
//     {
//         //register packets here
//         registerPacketServer(PacketProbeFiles.class);
//         registerPacketClient(GraveRenderTogglePacket.class);
//         registerPacketClient(GravePosTogglePacket.class);
//     }
// 
//     public static void sendToAll(BasePacket packet)
//     {
//         instance.network.sendToAll(packet);
//     }
// 
//     public static void sendTo(BasePacket packet, EntityPlayerMP player)
//     {
//         instance.network.sendTo(packet, player);
//     }
// 
//     public static void sendToAllAround(BasePacket packet, NetworkRegistry.TargetPoint point)
//     {
//         instance.network.sendToAllAround(packet, point);
//     }
// 
//     public static void sendToDimension(BasePacket packet, int dimensionID)
//     {
//         instance.network.sendToDimension(packet, dimensionID);
//     }
// 
//     public static void sendToServer(BasePacket packet)
//     {
//         instance.network.sendToServer(packet);
//     }
// 
//     public static void sendToClients(WorldServer world, BlockPos pos, BasePacket packet)
//     {
//         Chunk chunk = world.getChunkFromBlockCoords(pos);
//         for (EntityPlayer player : world.playerEntities)
//         {
//             if (!(player instanceof EntityPlayerMP))
//             {
//                 continue;
//             }
//             EntityPlayerMP playerMP = (EntityPlayerMP) player;
//             if (world.getPlayerChunkMap().isPlayerWatchingChunk(playerMP, chunk.x, chunk.z))
//             {
// //                LogHelper.info("Sending packet to: " + player.getName());
//                 TMGNetwork.sendTo(packet, playerMP);
//             }
//         }
//     }
// }


// Path: src/main/java/com/m4thg33k/tombmanygraves/client/gui/InventoryFileManagerGui.java
import java.util.ArrayList;
import java.util.List;
import com.m4thg33k.tombmanygraves.gui.containers.ContainerInventoryFileManager;
import com.m4thg33k.tombmanygraves.network.PacketProbeFiles;
import com.m4thg33k.tombmanygraves.network.TMGNetwork;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.player.EntityPlayer;

package com.m4thg33k.tombmanygraves.client.gui;




public class InventoryFileManagerGui extends ModBaseContainerGui {

    protected EntityPlayer player;
    protected GuiButton testButton;