@Override
  protected void keyTyped(char c, int i) {

    if (i != 1 && editMode) {
      if (c == 13) {
        editMode = false;
        return;
      }

      if (i == 14) NetworkHandlerClient.fireTileEntityEvent(Core, 12, "");

      if (i != 54 && i != 42 && i != 58 && i != 14)
        NetworkHandlerClient.fireTileEntityEvent(Core, 11, String.valueOf(c));

    } else {
      super.keyTyped(c, i);
    }
  }
  @Override
  protected void mouseClicked(int i, int j, int k) {
    super.mouseClicked(i, j, k);

    int xMin = (width - xSize) / 2;
    int yMin = (height - ySize) / 2;

    int x = i - xMin;
    int y = j - yMin;

    if (editMode) {
      editMode = false;
    } else if (x >= 5 && y >= 4 && x <= 135 && y <= 18) {
      NetworkHandlerClient.fireTileEntityEvent(Core, 10, "null");
      editMode = true;
    }
  }
 @Override
 protected void actionPerformed(GuiButton guibutton) {
   NetworkHandlerClient.fireTileEntityEvent(Core, guibutton.id, "");
 }