// Path: java/com/dynious/soundscool/SoundsCool.java
// @Mod(modid = Reference.modid, name = Reference.name, version = Reference.version)
// public class SoundsCool
// {
//     @Instance(Reference.modid)
//     public static SoundsCool instance;
// 
//     @SidedProxy(clientSide = Reference.clientProxy, serverSide = Reference.commonProxy)
//     public static CommonProxy proxy;
// 
//     public static CreativeTabs tabSoundsCool = new CreativeTabSoundsCool(CreativeTabs.getNextID(), Reference.modid);
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event)
//     {
//         proxy.soundSetup();
// 
//         proxy.UISetup();
// 
//         SoundHandler.findSounds();
// 
//         ModBlocks.init();
// 
//         proxy.initNetworking();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event)
//     {
// 
//         proxy.initTileEntities();
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
//     }
// 
//     @EventHandler
//     public void serverStarting(FMLServerStartingEvent event)
//     {
//         event.registerServerCommand(new CommandSoundsCool());
//     }
// }
// 
// Path: java/com/dynious/soundscool/network/packet/client/GetUploadedSoundsPacket.java
// public class GetUploadedSoundsPacket implements IPacket
// {
//     int entityID;
//     int worldID;
// 
//     public GetUploadedSoundsPacket()
//     {
//     }
// 
//     public GetUploadedSoundsPacket(EntityPlayer player)
//     {
//         this.entityID = player.getEntityId();
//         this.worldID = player.getEntityWorld().provider.dimensionId;
//     }
// 
//     @Override
//     public void readBytes(ByteBuf bytes)
//     {
//         entityID = bytes.readInt();
//         worldID = bytes.readInt();
// 
//         Entity entity = DimensionManager.getProvider(worldID).worldObj.getEntityByID(entityID);
//         if (entity != null && entity instanceof EntityPlayer)
//         {
//             NetworkHelper.sendPacketToPlayer(new UploadedSoundsPacket(), (EntityPlayer) entity);
//         }
//     }
// 
//     @Override
//     public void writeBytes(ByteBuf bytes)
//     {
//         bytes.writeInt(entityID);
//         bytes.writeInt(worldID);
//     }
// }


import com.dynious.soundscool.SoundsCool;
import com.dynious.soundscool.network.packet.client.GetUploadedSoundsPacket;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiTextField;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
package com.dynious.soundscool.client.gui;


public class GuiAdminPanel extends GuiScreen
{
    private EntityPlayer player;
    private GuiTextField maxSounds;

    public GuiAdminPanel(EntityPlayer player)
    {
        this.player = player;
        SoundsCool.proxy.getChannel().writeOutbound(new GetUploadedSoundsPacket(player));
    }

    @Override
    public void initGui()
    {
        super.initGui();
        this.buttonList.add(new GuiButton(0, getWidth() / 2, getHeight() - 42, I18n.format("gui.done")));
        maxSounds = new GuiTextField(fontRendererObj, getWidth()/2, getHeight()/2, 20, 15);
    }

    @Override
// Path: java/com/dynious/soundscool/SoundsCool.java
// @Mod(modid = Reference.modid, name = Reference.name, version = Reference.version)
// public class SoundsCool
// {
//     @Instance(Reference.modid)
//     public static SoundsCool instance;
// 
//     @SidedProxy(clientSide = Reference.clientProxy, serverSide = Reference.commonProxy)
//     public static CommonProxy proxy;
// 
//     public static CreativeTabs tabSoundsCool = new CreativeTabSoundsCool(CreativeTabs.getNextID(), Reference.modid);
// 
//     @EventHandler
//     public void preInit(FMLPreInitializationEvent event)
//     {
//         proxy.soundSetup();
// 
//         proxy.UISetup();
// 
//         SoundHandler.findSounds();
// 
//         ModBlocks.init();
// 
//         proxy.initNetworking();
//     }
// 
//     @EventHandler
//     public void init(FMLInitializationEvent event)
//     {
// 
//         proxy.initTileEntities();
// 
//         NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
//     }
// 
//     @EventHandler
//     public void serverStarting(FMLServerStartingEvent event)
//     {
//         event.registerServerCommand(new CommandSoundsCool());
//     }
// }
// 
// Path: java/com/dynious/soundscool/network/packet/client/GetUploadedSoundsPacket.java
// public class GetUploadedSoundsPacket implements IPacket
// {
//     int entityID;
//     int worldID;
// 
//     public GetUploadedSoundsPacket()
//     {
//     }
// 
//     public GetUploadedSoundsPacket(EntityPlayer player)
//     {
//         this.entityID = player.getEntityId();
//         this.worldID = player.getEntityWorld().provider.dimensionId;
//     }
// 
//     @Override
//     public void readBytes(ByteBuf bytes)
//     {
//         entityID = bytes.readInt();
//         worldID = bytes.readInt();
// 
//         Entity entity = DimensionManager.getProvider(worldID).worldObj.getEntityByID(entityID);
//         if (entity != null && entity instanceof EntityPlayer)
//         {
//             NetworkHelper.sendPacketToPlayer(new UploadedSoundsPacket(), (EntityPlayer) entity);
//         }
//     }
// 
//     @Override
//     public void writeBytes(ByteBuf bytes)
//     {
//         bytes.writeInt(entityID);
//         bytes.writeInt(worldID);
//     }
// }


// Path: java/com/dynious/soundscool/client/gui/GuiAdminPanel.java
import com.dynious.soundscool.SoundsCool;
import com.dynious.soundscool.network.packet.client.GetUploadedSoundsPacket;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.gui.GuiTextField;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;

package com.dynious.soundscool.client.gui;


public class GuiAdminPanel extends GuiScreen
{
    private EntityPlayer player;
    private GuiTextField maxSounds;

    public GuiAdminPanel(EntityPlayer player)
    {
        this.player = player;
        SoundsCool.proxy.getChannel().writeOutbound(new GetUploadedSoundsPacket(player));
    }

    @Override
    public void initGui()
    {
        super.initGui();
        this.buttonList.add(new GuiButton(0, getWidth() / 2, getHeight() - 42, I18n.format("gui.done")));
        maxSounds = new GuiTextField(fontRendererObj, getWidth()/2, getHeight()/2, 20, 15);
    }

    @Override
    public void updateScreen()