/** the element in the slot that was clicked, boolean for wether it was double clicked or not */
 protected void elementClicked(int par1, boolean par2) {
   this.field_82459_a = par1;
   this.flatPresetsGui.func_82296_g();
   GuiFlatPresets.func_82298_b(this.flatPresetsGui)
       .setText(
           ((GuiFlatPresetsItem)
                   GuiFlatPresets.getPresets()
                       .get(GuiFlatPresets.func_82292_a(this.flatPresetsGui).field_82459_a))
               .presetData);
 }
 private void func_82457_a(int par1, int par2, int par3) {
   this.func_82456_d(par1 + 1, par2 + 1);
   GL11.glEnable(GL12.GL_RESCALE_NORMAL);
   RenderHelper.enableGUIStandardItemLighting();
   GuiFlatPresets.getPresetIconRenderer()
       .renderItemIntoGUI(
           this.flatPresetsGui.fontRenderer,
           this.flatPresetsGui.mc.renderEngine,
           new ItemStack(par3, 1, 0),
           par1 + 2,
           par2 + 2);
   RenderHelper.disableStandardItemLighting();
   GL11.glDisable(GL12.GL_RESCALE_NORMAL);
 }
 protected void drawSlot(int par1, int par2, int par3, int par4, Tessellator par5Tessellator) {
   GuiFlatPresetsItem var6 = (GuiFlatPresetsItem) GuiFlatPresets.getPresets().get(par1);
   this.func_82457_a(par2, par3, var6.iconId);
   this.flatPresetsGui.fontRenderer.drawString(var6.presetName, par2 + 18 + 5, par3 + 6, 16777215);
 }
 /** Gets the size of the current slot list. */
 protected int getSize() {
   return GuiFlatPresets.getPresets().size();
 }