protected void actionPerformed(GuiButton button)
{
//Replace with a packet requesting the GUI from the server
if(button.id == 0) //Cargo
{
FlansMod.getPacketHandler().sendToServer(new PacketDriveableGUI(3));
//inventory.player.openGui(FlansMod.INSTANCE, 9, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
if(button.id == 1) //Guns
{
FlansMod.getPacketHandler().sendToServer(new PacketDriveableGUI(0));
//inventory.player.openGui(FlansMod.INSTANCE, 6, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
if(button.id == 2) //Fuel
{
FlansMod.getPacketHandler().sendToServer(new PacketDriveableGUI(2));
//inventory.player.openGui(FlansMod.INSTANCE, 8, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
if(button.id == 3) //Missiles
{
FlansMod.getPacketHandler().sendToServer(new PacketDriveableGUI(5));
//inventory.player.openGui(FlansMod.INSTANCE, 12, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
if(button.id == 4) //Repair
{
//No server side required. No interactive slots in this one
inventory.player.openGui(FlansMod.INSTANCE, 1, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
if(button.id == 5) //Bombs
{
FlansMod.getPacketHandler().sendToServer(new PacketDriveableGUI(1));
//inventory.player.openGui(FlansMod.INSTANCE, 7, world, entity.chunkCoordX, entity.chunkCoordY, entity.chunkCoordZ);
}
}