@@ -0,0 +1,972 @@
+package com.lothrazar.cyclicmagic.gui;%0A%0Aimport net.minecraft.client.Minecraft;%0Aimport net.minecraft.client.gui.GuiButton;%0Aimport net.minecraftforge.fml.relauncher.Side;%0Aimport net.minecraftforge.fml.relauncher.SideOnly;%0A%0Apublic class GuiButtonSpell extends GuiButton%7B%0A%0A%09public GuiButtonSpell(int buttonId, int x, int y, String buttonText) %7B%0A%09%09super(buttonId, x, y, 20,20 ,buttonText);%0A%09%7D%0A%09%0A%09@SideOnly(Side.CLIENT)%0A    @Override%0A    public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)%0A    %7B%0A    %09boolean pressed = super.mousePressed(mc, mouseX, mouseY);%0A    %09%0A    %09if(pressed)%0A    %09%7B%0A    %09%09//button id matches spell id%0A    %09%09System.out.println(%22clicked button %22+this.id);%0A//TODO: send packet%0A%09%09%09//ModEnderBook.network.sendToServer(new PacketWarpButton( bookSlot ));%0A%09%09%09%0A%09%09%09//we would have to wait until tp finishes and then sendToClient in a new 'particle packet' for this%0A%09%09%09//particleAtPlayer(world,mc.thePlayer);%0A    %09%7D%0A    %09%0A    %09return pressed;%0A    %7D%0A%0A%7D%0A

add button clicks to each, spell id == button id