{"action":"created","comment":{"url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/comments/36817020","id":36817020,"diff_hunk":"@@ -0,0 +1,60 @@\n+/*\n+ * Trident - A Multithreaded Server Alternative\n+ * Copyright 2014 The TridentSDK Team\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package net.tridentsdk.base;\n+\n+import java.util.Map;\n+\n+import com.google.common.collect.Maps;\n+\n+public final class Enchantment {","path":"src/main/java/net/tridentsdk/base/Enchantment.java","position":23,"original_position":23,"commit_id":"545e487e2b92db68d6a1207315b2ad000ee0fb83","original_commit_id":"545e487e2b92db68d6a1207315b2ad000ee0fb83","user":{"login":"AgentTroll","id":5037004,"avatar_url":"https://avatars.githubusercontent.com/u/5037004?v=3","gravatar_id":"","url":"https://api.github.com/users/AgentTroll","html_url":"https://github.com/AgentTroll","followers_url":"https://api.github.com/users/AgentTroll/followers","following_url":"https://api.github.com/users/AgentTroll/following{/other_user}","gists_url":"https://api.github.com/users/AgentTroll/gists{/gist_id}","starred_url":"https://api.github.com/users/AgentTroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgentTroll/subscriptions","organizations_url":"https://api.github.com/users/AgentTroll/orgs","repos_url":"https://api.github.com/users/AgentTroll/repos","events_url":"https://api.github.com/users/AgentTroll/events{/privacy}","received_events_url":"https://api.github.com/users/AgentTroll/received_events","type":"User","site_admin":false},"body":"Remove leading whitespace, convert to enum. Perhaps also consider using HashMap, or using a foreach instead of table lookups.","created_at":"2015-08-12T00:45:08Z","updated_at":"2015-08-12T00:45:08Z","html_url":"https://github.com/TridentSDK/TridentSDK/pull/50#discussion_r36817020","pull_request_url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/comments/36817020"},"html":{"href":"https://github.com/TridentSDK/TridentSDK/pull/50#discussion_r36817020"},"pull_request":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50","id":42097769,"html_url":"https://github.com/TridentSDK/TridentSDK/pull/50","diff_url":"https://github.com/TridentSDK/TridentSDK/pull/50.diff","patch_url":"https://github.com/TridentSDK/TridentSDK/pull/50.patch","issue_url":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/50","number":50,"state":"open","locked":false,"title":"Work on ItemMeta: Fireworks, Skulls, Maps, Enchantments","user":{"login":"nickrobson","id":11308077,"avatar_url":"https://avatars.githubusercontent.com/u/11308077?v=3","gravatar_id":"","url":"https://api.github.com/users/nickrobson","html_url":"https://github.com/nickrobson","followers_url":"https://api.github.com/users/nickrobson/followers","following_url":"https://api.github.com/users/nickrobson/following{/other_user}","gists_url":"https://api.github.com/users/nickrobson/gists{/gist_id}","starred_url":"https://api.github.com/users/nickrobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickrobson/subscriptions","organizations_url":"https://api.github.com/users/nickrobson/orgs","repos_url":"https://api.github.com/users/nickrobson/repos","events_url":"https://api.github.com/users/nickrobson/events{/privacy}","received_events_url":"https://api.github.com/users/nickrobson/received_events","type":"User","site_admin":false},"body":"This adds data-types for meta belonging to:\r\n\r\n* Fireworks\r\n* Skulls\r\n* Maps\r\n* Enchanted Books (including Enchantments)\r\n\r\nMatching PR on Implementation: TridentSDK/Trident#45","created_at":"2015-08-11T06:50:44Z","updated_at":"2015-08-12T00:45:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"375efdeb387504d1870b08273a1b9e8a7d8efb68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50/commits","review_comments_url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50/comments","review_comment_url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/comments{/number}","comments_url":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/50/comments","statuses_url":"https://api.github.com/repos/TridentSDK/TridentSDK/statuses/545e487e2b92db68d6a1207315b2ad000ee0fb83","head":{"label":"nickrobson:meta","ref":"meta","sha":"545e487e2b92db68d6a1207315b2ad000ee0fb83","user":{"login":"nickrobson","id":11308077,"avatar_url":"https://avatars.githubusercontent.com/u/11308077?v=3","gravatar_id":"","url":"https://api.github.com/users/nickrobson","html_url":"https://github.com/nickrobson","followers_url":"https://api.github.com/users/nickrobson/followers","following_url":"https://api.github.com/users/nickrobson/following{/other_user}","gists_url":"https://api.github.com/users/nickrobson/gists{/gist_id}","starred_url":"https://api.github.com/users/nickrobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickrobson/subscriptions","organizations_url":"https://api.github.com/users/nickrobson/orgs","repos_url":"https://api.github.com/users/nickrobson/repos","events_url":"https://api.github.com/users/nickrobson/events{/privacy}","received_events_url":"https://api.github.com/users/nickrobson/received_events","type":"User","site_admin":false},"repo":{"id":40525684,"name":"TridentSDK","full_name":"nickrobson/TridentSDK","owner":{"login":"nickrobson","id":11308077,"avatar_url":"https://avatars.githubusercontent.com/u/11308077?v=3","gravatar_id":"","url":"https://api.github.com/users/nickrobson","html_url":"https://github.com/nickrobson","followers_url":"https://api.github.com/users/nickrobson/followers","following_url":"https://api.github.com/users/nickrobson/following{/other_user}","gists_url":"https://api.github.com/users/nickrobson/gists{/gist_id}","starred_url":"https://api.github.com/users/nickrobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickrobson/subscriptions","organizations_url":"https://api.github.com/users/nickrobson/orgs","repos_url":"https://api.github.com/users/nickrobson/repos","events_url":"https://api.github.com/users/nickrobson/events{/privacy}","received_events_url":"https://api.github.com/users/nickrobson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nickrobson/TridentSDK","description":"The new API for developers to continue developing Minecraft","fork":true,"url":"https://api.github.com/repos/nickrobson/TridentSDK","forks_url":"https://api.github.com/repos/nickrobson/TridentSDK/forks","keys_url":"https://api.github.com/repos/nickrobson/TridentSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nickrobson/TridentSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nickrobson/TridentSDK/teams","hooks_url":"https://api.github.com/repos/nickrobson/TridentSDK/hooks","issue_events_url":"https://api.github.com/repos/nickrobson/TridentSDK/issues/events{/number}","events_url":"https://api.github.com/repos/nickrobson/TridentSDK/events","assignees_url":"https://api.github.com/repos/nickrobson/TridentSDK/assignees{/user}","branches_url":"https://api.github.com/repos/nickrobson/TridentSDK/branches{/branch}","tags_url":"https://api.github.com/repos/nickrobson/TridentSDK/tags","blobs_url":"https://api.github.com/repos/nickrobson/TridentSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nickrobson/TridentSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nickrobson/TridentSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/nickrobson/TridentSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nickrobson/TridentSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/nickrobson/TridentSDK/languages","stargazers_url":"https://api.github.com/repos/nickrobson/TridentSDK/stargazers","contributors_url":"https://api.github.com/repos/nickrobson/TridentSDK/contributors","subscribers_url":"https://api.github.com/repos/nickrobson/TridentSDK/subscribers","subscription_url":"https://api.github.com/repos/nickrobson/TridentSDK/subscription","commits_url":"https://api.github.com/repos/nickrobson/TridentSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/nickrobson/TridentSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/nickrobson/TridentSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/nickrobson/TridentSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/nickrobson/TridentSDK/contents/{+path}","compare_url":"https://api.github.com/repos/nickrobson/TridentSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nickrobson/TridentSDK/merges","archive_url":"https://api.github.com/repos/nickrobson/TridentSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nickrobson/TridentSDK/downloads","issues_url":"https://api.github.com/repos/nickrobson/TridentSDK/issues{/number}","pulls_url":"https://api.github.com/repos/nickrobson/TridentSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/nickrobson/TridentSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/nickrobson/TridentSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nickrobson/TridentSDK/labels{/name}","releases_url":"https://api.github.com/repos/nickrobson/TridentSDK/releases{/id}","created_at":"2015-08-11T06:34:55Z","updated_at":"2015-08-11T06:34:56Z","pushed_at":"2015-08-11T23:17:11Z","git_url":"git://github.com/nickrobson/TridentSDK.git","ssh_url":"git@github.com:nickrobson/TridentSDK.git","clone_url":"https://github.com/nickrobson/TridentSDK.git","svn_url":"https://github.com/nickrobson/TridentSDK","homepage":"","size":5067,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"bleeding-edge"}},"base":{"label":"TridentSDK:bleeding-edge","ref":"bleeding-edge","sha":"8aa4deb187685ff7bc2c7441bf83831515cac645","user":{"login":"TridentSDK","id":8512405,"avatar_url":"https://avatars.githubusercontent.com/u/8512405?v=3","gravatar_id":"","url":"https://api.github.com/users/TridentSDK","html_url":"https://github.com/TridentSDK","followers_url":"https://api.github.com/users/TridentSDK/followers","following_url":"https://api.github.com/users/TridentSDK/following{/other_user}","gists_url":"https://api.github.com/users/TridentSDK/gists{/gist_id}","starred_url":"https://api.github.com/users/TridentSDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TridentSDK/subscriptions","organizations_url":"https://api.github.com/users/TridentSDK/orgs","repos_url":"https://api.github.com/users/TridentSDK/repos","events_url":"https://api.github.com/users/TridentSDK/events{/privacy}","received_events_url":"https://api.github.com/users/TridentSDK/received_events","type":"Organization","site_admin":false},"repo":{"id":23183273,"name":"TridentSDK","full_name":"TridentSDK/TridentSDK","owner":{"login":"TridentSDK","id":8512405,"avatar_url":"https://avatars.githubusercontent.com/u/8512405?v=3","gravatar_id":"","url":"https://api.github.com/users/TridentSDK","html_url":"https://github.com/TridentSDK","followers_url":"https://api.github.com/users/TridentSDK/followers","following_url":"https://api.github.com/users/TridentSDK/following{/other_user}","gists_url":"https://api.github.com/users/TridentSDK/gists{/gist_id}","starred_url":"https://api.github.com/users/TridentSDK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TridentSDK/subscriptions","organizations_url":"https://api.github.com/users/TridentSDK/orgs","repos_url":"https://api.github.com/users/TridentSDK/repos","events_url":"https://api.github.com/users/TridentSDK/events{/privacy}","received_events_url":"https://api.github.com/users/TridentSDK/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/TridentSDK/TridentSDK","description":"The new API for developers to continue developing Minecraft","fork":false,"url":"https://api.github.com/repos/TridentSDK/TridentSDK","forks_url":"https://api.github.com/repos/TridentSDK/TridentSDK/forks","keys_url":"https://api.github.com/repos/TridentSDK/TridentSDK/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TridentSDK/TridentSDK/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TridentSDK/TridentSDK/teams","hooks_url":"https://api.github.com/repos/TridentSDK/TridentSDK/hooks","issue_events_url":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/events{/number}","events_url":"https://api.github.com/repos/TridentSDK/TridentSDK/events","assignees_url":"https://api.github.com/repos/TridentSDK/TridentSDK/assignees{/user}","branches_url":"https://api.github.com/repos/TridentSDK/TridentSDK/branches{/branch}","tags_url":"https://api.github.com/repos/TridentSDK/TridentSDK/tags","blobs_url":"https://api.github.com/repos/TridentSDK/TridentSDK/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TridentSDK/TridentSDK/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TridentSDK/TridentSDK/git/refs{/sha}","trees_url":"https://api.github.com/repos/TridentSDK/TridentSDK/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TridentSDK/TridentSDK/statuses/{sha}","languages_url":"https://api.github.com/repos/TridentSDK/TridentSDK/languages","stargazers_url":"https://api.github.com/repos/TridentSDK/TridentSDK/stargazers","contributors_url":"https://api.github.com/repos/TridentSDK/TridentSDK/contributors","subscribers_url":"https://api.github.com/repos/TridentSDK/TridentSDK/subscribers","subscription_url":"https://api.github.com/repos/TridentSDK/TridentSDK/subscription","commits_url":"https://api.github.com/repos/TridentSDK/TridentSDK/commits{/sha}","git_commits_url":"https://api.github.com/repos/TridentSDK/TridentSDK/git/commits{/sha}","comments_url":"https://api.github.com/repos/TridentSDK/TridentSDK/comments{/number}","issue_comment_url":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/comments{/number}","contents_url":"https://api.github.com/repos/TridentSDK/TridentSDK/contents/{+path}","compare_url":"https://api.github.com/repos/TridentSDK/TridentSDK/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TridentSDK/TridentSDK/merges","archive_url":"https://api.github.com/repos/TridentSDK/TridentSDK/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TridentSDK/TridentSDK/downloads","issues_url":"https://api.github.com/repos/TridentSDK/TridentSDK/issues{/number}","pulls_url":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls{/number}","milestones_url":"https://api.github.com/repos/TridentSDK/TridentSDK/milestones{/number}","notifications_url":"https://api.github.com/repos/TridentSDK/TridentSDK/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TridentSDK/TridentSDK/labels{/name}","releases_url":"https://api.github.com/repos/TridentSDK/TridentSDK/releases{/id}","created_at":"2014-08-21T10:31:36Z","updated_at":"2015-07-18T18:40:17Z","pushed_at":"2015-08-12T00:10:31Z","git_url":"git://github.com/TridentSDK/TridentSDK.git","ssh_url":"git@github.com:TridentSDK/TridentSDK.git","clone_url":"https://github.com/TridentSDK/TridentSDK.git","svn_url":"https://github.com/TridentSDK/TridentSDK","homepage":"","size":5067,"stargazers_count":48,"watchers_count":48,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":1,"forks":32,"open_issues":1,"watchers":48,"default_branch":"bleeding-edge"}},"_links":{"self":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50"},"html":{"href":"https://github.com/TridentSDK/TridentSDK/pull/50"},"issue":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/50"},"comments":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/TridentSDK/TridentSDK/statuses/545e487e2b92db68d6a1207315b2ad000ee0fb83"}}}}