Registers a method to be run while gui is open. Registered method runs on mouse click. Arguments passed through to method:
int mouseX
int mouseY
int button
the trigger
the method to run