{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1","id":51035735,"html_url":"https://github.com/jaredlll08/ExactlyEnoughItems/pull/1","diff_url":"https://github.com/jaredlll08/ExactlyEnoughItems/pull/1.diff","patch_url":"https://github.com/jaredlll08/ExactlyEnoughItems/pull/1.patch","issue_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/1","number":1,"state":"open","locked":false,"title":"Allows the keyTyped method to be canceled by the Hook.","user":{"login":"darkhax","id":2250798,"avatar_url":"https://avatars.githubusercontent.com/u/2250798?v=3","gravatar_id":"","url":"https://api.github.com/users/darkhax","html_url":"https://github.com/darkhax","followers_url":"https://api.github.com/users/darkhax/followers","following_url":"https://api.github.com/users/darkhax/following{/other_user}","gists_url":"https://api.github.com/users/darkhax/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhax/subscriptions","organizations_url":"https://api.github.com/users/darkhax/orgs","repos_url":"https://api.github.com/users/darkhax/repos","events_url":"https://api.github.com/users/darkhax/events{/privacy}","received_events_url":"https://api.github.com/users/darkhax/received_events","type":"User","site_admin":false},"body":"This should provide a sufficient way to cancel the keyTyped event. If your hook returns true, the method will be cancelled. The following is an example of what the vanilla keyTyped method will look like with these changes in effect. \r\n\r\n\r\n\r\n\r\n\tprotected void keyTyped(char p_73869_1_, int p_73869_2_) {\r\n\t\t\r\n\t\tif (Hooks.keyTyped(p_73869_1_, p_73869_2_))\r\n\t\t\treturn;\r\n\t\t\r\n\t\tif (p_73869_2_ == 1 || p_73869_2_ == this.mc.gameSettings.keyBindInventory.getKeyCode()) {\r\n\t\t\t\r\n\t\t\tthis.mc.thePlayer.closeScreen();\r\n\t\t}\r\n\r\n\t\tthis.checkHotbarKeys(p_73869_2_);\r\n\r\n\t\tif (this.theSlot != null && this.theSlot.getHasStack()) {\r\n\t\t\t\r\n\t\t\tif (p_73869_2_ == this.mc.gameSettings.keyBindPickBlock.getKeyCode()) {\r\n\t\t\t\t\r\n\t\t\t\tthis.handleMouseClick(this.theSlot, this.theSlot.slotNumber, 0, 3);\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\telse if (p_73869_2_ == this.mc.gameSettings.keyBindDrop.getKeyCode()) {\r\n\t\t\t\t\r\n\t\t\t\tthis.handleMouseClick(this.theSlot, this.theSlot.slotNumber, isCtrlKeyDown() ? 1 : 0, 4);\r\n\t\t\t}\r\n\t\t}\r\n\t}","created_at":"2015-11-18T02:40:21Z","updated_at":"2015-11-18T02:40:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/1/comments","statuses_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/statuses/1cd2a5689274b813d6c2282e46718b3a74900fe5","head":{"label":"darkhax:master","ref":"master","sha":"1cd2a5689274b813d6c2282e46718b3a74900fe5","user":{"login":"darkhax","id":2250798,"avatar_url":"https://avatars.githubusercontent.com/u/2250798?v=3","gravatar_id":"","url":"https://api.github.com/users/darkhax","html_url":"https://github.com/darkhax","followers_url":"https://api.github.com/users/darkhax/followers","following_url":"https://api.github.com/users/darkhax/following{/other_user}","gists_url":"https://api.github.com/users/darkhax/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhax/subscriptions","organizations_url":"https://api.github.com/users/darkhax/orgs","repos_url":"https://api.github.com/users/darkhax/repos","events_url":"https://api.github.com/users/darkhax/events{/privacy}","received_events_url":"https://api.github.com/users/darkhax/received_events","type":"User","site_admin":false},"repo":{"id":46389047,"name":"ExactlyEnoughItems","full_name":"darkhax/ExactlyEnoughItems","owner":{"login":"darkhax","id":2250798,"avatar_url":"https://avatars.githubusercontent.com/u/2250798?v=3","gravatar_id":"","url":"https://api.github.com/users/darkhax","html_url":"https://github.com/darkhax","followers_url":"https://api.github.com/users/darkhax/followers","following_url":"https://api.github.com/users/darkhax/following{/other_user}","gists_url":"https://api.github.com/users/darkhax/gists{/gist_id}","starred_url":"https://api.github.com/users/darkhax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darkhax/subscriptions","organizations_url":"https://api.github.com/users/darkhax/orgs","repos_url":"https://api.github.com/users/darkhax/repos","events_url":"https://api.github.com/users/darkhax/events{/privacy}","received_events_url":"https://api.github.com/users/darkhax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/darkhax/ExactlyEnoughItems","description":"","fork":true,"url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems","forks_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/forks","keys_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/teams","hooks_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/hooks","issue_events_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/issues/events{/number}","events_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/events","assignees_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/assignees{/user}","branches_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/branches{/branch}","tags_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/tags","blobs_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/git/refs{/sha}","trees_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/statuses/{sha}","languages_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/languages","stargazers_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/stargazers","contributors_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/contributors","subscribers_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/subscribers","subscription_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/subscription","commits_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/commits{/sha}","git_commits_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/git/commits{/sha}","comments_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/comments{/number}","issue_comment_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/issues/comments{/number}","contents_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/contents/{+path}","compare_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/merges","archive_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/downloads","issues_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/issues{/number}","pulls_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/pulls{/number}","milestones_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/milestones{/number}","notifications_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/labels{/name}","releases_url":"https://api.github.com/repos/darkhax/ExactlyEnoughItems/releases{/id}","created_at":"2015-11-18T02:15:13Z","updated_at":"2015-11-18T02:15:14Z","pushed_at":"2015-11-18T02:33:21Z","git_url":"git://github.com/darkhax/ExactlyEnoughItems.git","ssh_url":"git@github.com:darkhax/ExactlyEnoughItems.git","clone_url":"https://github.com/darkhax/ExactlyEnoughItems.git","svn_url":"https://github.com/darkhax/ExactlyEnoughItems","homepage":null,"size":1629,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jaredlll08:master","ref":"master","sha":"2acabf418ca3d519f3d3cc79d61e18bf1feb0240","user":{"login":"jaredlll08","id":5553605,"avatar_url":"https://avatars.githubusercontent.com/u/5553605?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredlll08","html_url":"https://github.com/jaredlll08","followers_url":"https://api.github.com/users/jaredlll08/followers","following_url":"https://api.github.com/users/jaredlll08/following{/other_user}","gists_url":"https://api.github.com/users/jaredlll08/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredlll08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredlll08/subscriptions","organizations_url":"https://api.github.com/users/jaredlll08/orgs","repos_url":"https://api.github.com/users/jaredlll08/repos","events_url":"https://api.github.com/users/jaredlll08/events{/privacy}","received_events_url":"https://api.github.com/users/jaredlll08/received_events","type":"User","site_admin":false},"repo":{"id":46238146,"name":"ExactlyEnoughItems","full_name":"jaredlll08/ExactlyEnoughItems","owner":{"login":"jaredlll08","id":5553605,"avatar_url":"https://avatars.githubusercontent.com/u/5553605?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredlll08","html_url":"https://github.com/jaredlll08","followers_url":"https://api.github.com/users/jaredlll08/followers","following_url":"https://api.github.com/users/jaredlll08/following{/other_user}","gists_url":"https://api.github.com/users/jaredlll08/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredlll08/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredlll08/subscriptions","organizations_url":"https://api.github.com/users/jaredlll08/orgs","repos_url":"https://api.github.com/users/jaredlll08/repos","events_url":"https://api.github.com/users/jaredlll08/events{/privacy}","received_events_url":"https://api.github.com/users/jaredlll08/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jaredlll08/ExactlyEnoughItems","description":"","fork":false,"url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems","forks_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/forks","keys_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/teams","hooks_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/hooks","issue_events_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/events{/number}","events_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/events","assignees_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/assignees{/user}","branches_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/branches{/branch}","tags_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/tags","blobs_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/git/refs{/sha}","trees_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/statuses/{sha}","languages_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/languages","stargazers_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/stargazers","contributors_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/contributors","subscribers_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/subscribers","subscription_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/subscription","commits_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/commits{/sha}","git_commits_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/git/commits{/sha}","comments_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/comments{/number}","issue_comment_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/comments{/number}","contents_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/contents/{+path}","compare_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/merges","archive_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/downloads","issues_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues{/number}","pulls_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls{/number}","milestones_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/milestones{/number}","notifications_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/labels{/name}","releases_url":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/releases{/id}","created_at":"2015-11-15T22:09:57Z","updated_at":"2015-11-15T22:10:51Z","pushed_at":"2015-11-15T22:10:51Z","git_url":"git://github.com/jaredlll08/ExactlyEnoughItems.git","ssh_url":"git@github.com:jaredlll08/ExactlyEnoughItems.git","clone_url":"https://github.com/jaredlll08/ExactlyEnoughItems.git","svn_url":"https://github.com/jaredlll08/ExactlyEnoughItems","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1"},"html":{"href":"https://github.com/jaredlll08/ExactlyEnoughItems/pull/1"},"issue":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/1"},"comments":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jaredlll08/ExactlyEnoughItems/statuses/1cd2a5689274b813d6c2282e46718b3a74900fe5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":14,"deletions":2,"changed_files":2}}