/** 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); }