{"action":"created","comment":{"url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/comments/73595333","id":73595333,"diff_hunk":"@@ -0,0 +1,64 @@\n+/*\n+ */\n+package com.teaminfinity.elementalinvocations.impl.spell;\n+\n+import com.teaminfinity.elementalinvocations.api.ISpellRegistry;\n+import com.teaminfinity.elementalinvocations.api.Element;\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.concurrent.ConcurrentHashMap;\n+import java.util.stream.Collectors;\n+\n+/**\n+ *\n+ * @author RlonRyan\n+ */\n+public final class SpellRegistry implements ISpellRegistry {\n+\t\n+\tprivate static final SpellRegistry INSTANCE = new SpellRegistry();\n+\t\n+\tprivate final Map<String, Spell> spells;\n+\n+\tpublic SpellRegistry() {\n+\t\tthis.spells = new ConcurrentHashMap<>();\n+\t}\n+\t\n+\tpublic static SpellRegistry getInstance() {\n+\t\treturn INSTANCE;\n+\t}\n+\t\n+\t@Override\n+\tpublic Spell addSpell(Spell spell) {\n+\t\treturn spell == null ? null : spells.put(spell.getId(), spell);\n+\t}\n+\t\n+\t@Override\n+\tpublic Spell getSpell(String spellId) {\n+\t\treturn spells.get(spellId);\n+\t}\n+\n+\t@Override\n+\tpublic List<String> getSpellIds() {\n+\t\treturn new ArrayList<>(spells.keySet());\n+\t}\n+\t\n+\t@Override\n+\tpublic List<Spell> getSpells() {\n+\t\treturn new ArrayList<>(spells.values());\n+\t}\n+\t\n+\t@Override\n+\tpublic List<Spell> getSpells(Element... elements) {\n+\t\treturn getSpells(Arrays.asList(elements));","path":"src/main/java/com/teaminfinity/elementalinvocations/impl/spell/SpellRegistry.java","position":54,"original_position":54,"commit_id":"f1917b454c8a2d03312b8d034fefee795792d8fb","original_commit_id":"f1917b454c8a2d03312b8d034fefee795792d8fb","user":{"login":"RlonRyan","id":3212966,"avatar_url":"https://avatars.githubusercontent.com/u/3212966?v=3","gravatar_id":"","url":"https://api.github.com/users/RlonRyan","html_url":"https://github.com/RlonRyan","followers_url":"https://api.github.com/users/RlonRyan/followers","following_url":"https://api.github.com/users/RlonRyan/following{/other_user}","gists_url":"https://api.github.com/users/RlonRyan/gists{/gist_id}","starred_url":"https://api.github.com/users/RlonRyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RlonRyan/subscriptions","organizations_url":"https://api.github.com/users/RlonRyan/orgs","repos_url":"https://api.github.com/users/RlonRyan/repos","events_url":"https://api.github.com/users/RlonRyan/events{/privacy}","received_events_url":"https://api.github.com/users/RlonRyan/received_events","type":"User","site_admin":false},"body":"That will take a bit. Let me commit these changes first.","created_at":"2016-08-04T20:21:50Z","updated_at":"2016-08-04T20:21:50Z","html_url":"https://github.com/InfinityRaider/ElementalInvocations/pull/3#discussion_r73595333","pull_request_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/comments/73595333"},"html":{"href":"https://github.com/InfinityRaider/ElementalInvocations/pull/3#discussion_r73595333"},"pull_request":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3","id":80131180,"html_url":"https://github.com/InfinityRaider/ElementalInvocations/pull/3","diff_url":"https://github.com/InfinityRaider/ElementalInvocations/pull/3.diff","patch_url":"https://github.com/InfinityRaider/ElementalInvocations/pull/3.patch","issue_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/3","number":3,"state":"open","locked":false,"title":"Dev spell","user":{"login":"RlonRyan","id":3212966,"avatar_url":"https://avatars.githubusercontent.com/u/3212966?v=3","gravatar_id":"","url":"https://api.github.com/users/RlonRyan","html_url":"https://github.com/RlonRyan","followers_url":"https://api.github.com/users/RlonRyan/followers","following_url":"https://api.github.com/users/RlonRyan/following{/other_user}","gists_url":"https://api.github.com/users/RlonRyan/gists{/gist_id}","starred_url":"https://api.github.com/users/RlonRyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RlonRyan/subscriptions","organizations_url":"https://api.github.com/users/RlonRyan/orgs","repos_url":"https://api.github.com/users/RlonRyan/repos","events_url":"https://api.github.com/users/RlonRyan/events{/privacy}","received_events_url":"https://api.github.com/users/RlonRyan/received_events","type":"User","site_admin":false},"body":"Implement Spell Registry.","created_at":"2016-08-04T18:58:06Z","updated_at":"2016-08-04T20:21:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b7ecd2d4bd112a664932d29c78bf873a38541f62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3/commits","review_comments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3/comments","review_comment_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/3/comments","statuses_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/statuses/f1917b454c8a2d03312b8d034fefee795792d8fb","head":{"label":"InfinityRaider:dev-spell","ref":"dev-spell","sha":"f1917b454c8a2d03312b8d034fefee795792d8fb","user":{"login":"InfinityRaider","id":8151219,"avatar_url":"https://avatars.githubusercontent.com/u/8151219?v=3","gravatar_id":"","url":"https://api.github.com/users/InfinityRaider","html_url":"https://github.com/InfinityRaider","followers_url":"https://api.github.com/users/InfinityRaider/followers","following_url":"https://api.github.com/users/InfinityRaider/following{/other_user}","gists_url":"https://api.github.com/users/InfinityRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/InfinityRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfinityRaider/subscriptions","organizations_url":"https://api.github.com/users/InfinityRaider/orgs","repos_url":"https://api.github.com/users/InfinityRaider/repos","events_url":"https://api.github.com/users/InfinityRaider/events{/privacy}","received_events_url":"https://api.github.com/users/InfinityRaider/received_events","type":"User","site_admin":false},"repo":{"id":64753051,"name":"ElementalInvocations","full_name":"InfinityRaider/ElementalInvocations","owner":{"login":"InfinityRaider","id":8151219,"avatar_url":"https://avatars.githubusercontent.com/u/8151219?v=3","gravatar_id":"","url":"https://api.github.com/users/InfinityRaider","html_url":"https://github.com/InfinityRaider","followers_url":"https://api.github.com/users/InfinityRaider/followers","following_url":"https://api.github.com/users/InfinityRaider/following{/other_user}","gists_url":"https://api.github.com/users/InfinityRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/InfinityRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfinityRaider/subscriptions","organizations_url":"https://api.github.com/users/InfinityRaider/orgs","repos_url":"https://api.github.com/users/InfinityRaider/repos","events_url":"https://api.github.com/users/InfinityRaider/events{/privacy}","received_events_url":"https://api.github.com/users/InfinityRaider/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/InfinityRaider/ElementalInvocations","description":"The Modding Trials 2016 mod","fork":false,"url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations","forks_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/forks","keys_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/teams","hooks_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/hooks","issue_events_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/events{/number}","events_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/events","assignees_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/assignees{/user}","branches_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/branches{/branch}","tags_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/tags","blobs_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/refs{/sha}","trees_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/statuses/{sha}","languages_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/languages","stargazers_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/stargazers","contributors_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/contributors","subscribers_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/subscribers","subscription_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/subscription","commits_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/commits{/sha}","git_commits_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/commits{/sha}","comments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/comments{/number}","issue_comment_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/comments{/number}","contents_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/contents/{+path}","compare_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/merges","archive_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/downloads","issues_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues{/number}","pulls_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls{/number}","milestones_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/milestones{/number}","notifications_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/labels{/name}","releases_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/releases{/id}","deployments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/deployments","created_at":"2016-08-02T11:59:19Z","updated_at":"2016-08-04T12:34:32Z","pushed_at":"2016-08-04T20:06:40Z","git_url":"git://github.com/InfinityRaider/ElementalInvocations.git","ssh_url":"git@github.com:InfinityRaider/ElementalInvocations.git","clone_url":"https://github.com/InfinityRaider/ElementalInvocations.git","svn_url":"https://github.com/InfinityRaider/ElementalInvocations","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"InfinityRaider:master","ref":"master","sha":"6f333ab1b8ecedcf4969aa1a1ad5c94bfd6ce497","user":{"login":"InfinityRaider","id":8151219,"avatar_url":"https://avatars.githubusercontent.com/u/8151219?v=3","gravatar_id":"","url":"https://api.github.com/users/InfinityRaider","html_url":"https://github.com/InfinityRaider","followers_url":"https://api.github.com/users/InfinityRaider/followers","following_url":"https://api.github.com/users/InfinityRaider/following{/other_user}","gists_url":"https://api.github.com/users/InfinityRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/InfinityRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfinityRaider/subscriptions","organizations_url":"https://api.github.com/users/InfinityRaider/orgs","repos_url":"https://api.github.com/users/InfinityRaider/repos","events_url":"https://api.github.com/users/InfinityRaider/events{/privacy}","received_events_url":"https://api.github.com/users/InfinityRaider/received_events","type":"User","site_admin":false},"repo":{"id":64753051,"name":"ElementalInvocations","full_name":"InfinityRaider/ElementalInvocations","owner":{"login":"InfinityRaider","id":8151219,"avatar_url":"https://avatars.githubusercontent.com/u/8151219?v=3","gravatar_id":"","url":"https://api.github.com/users/InfinityRaider","html_url":"https://github.com/InfinityRaider","followers_url":"https://api.github.com/users/InfinityRaider/followers","following_url":"https://api.github.com/users/InfinityRaider/following{/other_user}","gists_url":"https://api.github.com/users/InfinityRaider/gists{/gist_id}","starred_url":"https://api.github.com/users/InfinityRaider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InfinityRaider/subscriptions","organizations_url":"https://api.github.com/users/InfinityRaider/orgs","repos_url":"https://api.github.com/users/InfinityRaider/repos","events_url":"https://api.github.com/users/InfinityRaider/events{/privacy}","received_events_url":"https://api.github.com/users/InfinityRaider/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/InfinityRaider/ElementalInvocations","description":"The Modding Trials 2016 mod","fork":false,"url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations","forks_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/forks","keys_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/teams","hooks_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/hooks","issue_events_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/events{/number}","events_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/events","assignees_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/assignees{/user}","branches_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/branches{/branch}","tags_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/tags","blobs_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/refs{/sha}","trees_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/statuses/{sha}","languages_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/languages","stargazers_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/stargazers","contributors_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/contributors","subscribers_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/subscribers","subscription_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/subscription","commits_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/commits{/sha}","git_commits_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/git/commits{/sha}","comments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/comments{/number}","issue_comment_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/comments{/number}","contents_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/contents/{+path}","compare_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/merges","archive_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/downloads","issues_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues{/number}","pulls_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls{/number}","milestones_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/milestones{/number}","notifications_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/labels{/name}","releases_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/releases{/id}","deployments_url":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/deployments","created_at":"2016-08-02T11:59:19Z","updated_at":"2016-08-04T12:34:32Z","pushed_at":"2016-08-04T20:06:40Z","git_url":"git://github.com/InfinityRaider/ElementalInvocations.git","ssh_url":"git@github.com:InfinityRaider/ElementalInvocations.git","clone_url":"https://github.com/InfinityRaider/ElementalInvocations.git","svn_url":"https://github.com/InfinityRaider/ElementalInvocations","homepage":null,"size":147,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3"},"html":{"href":"https://github.com/InfinityRaider/ElementalInvocations/pull/3"},"issue":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/3"},"comments":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/InfinityRaider/ElementalInvocations/statuses/f1917b454c8a2d03312b8d034fefee795792d8fb"}}}}
{"actor":{"display_login":"RlonRyan"}}