public final void grabMouse() {
		if(!this.hasMouse) {
			this.hasMouse = true;
			if(this.levelLoaded) {
				try {
					Mouse.setNativeCursor(this.cursor);
					Mouse.setCursorPosition(this.width / 2, this.height / 2);
				} catch (LWJGLException var2) {
					var2.printStackTrace();
				}

				if(this.canvas == null) {
					this.canvas.requestFocus();
				}
			} else {
				Mouse.setGrabbed(true);
			}

			this.setCurrentScreen((GuiScreen)null);
			this.lastClick = this.ticks + 10000;
		}
	}