{"action":"created","comment":{"url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/comments/24105862","id":24105862,"diff_hunk":"@@ -0,0 +1,62 @@\n+/*\n+ * This file is part of Sponge, licensed under the MIT License (MIT).\n+ *\n+ * Copyright (c) SpongePowered.org <http://www.spongepowered.org>\n+ * Copyright (c) contributors\n+ *\n+ * Permission is hereby granted, free of charge, to any person obtaining a copy\n+ * of this software and associated documentation files (the \"Software\"), to deal\n+ * in the Software without restriction, including without limitation the rights\n+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n+ * copies of the Software, and to permit persons to whom the Software is\n+ * furnished to do so, subject to the following conditions:\n+ *\n+ * The above copyright notice and this permission notice shall be included in\n+ * all copies or substantial portions of the Software.\n+ *\n+ * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n+ * THE SOFTWARE.\n+ */\n+package org.spongepowered.api.resourcepack;\n+\n+import com.google.common.base.Optional;\n+\n+import java.io.FileNotFoundException;\n+import java.net.URL;\n+\n+public interface ResourcePackFactory {\n+\n+    /**\n+     * Creates a {@link ResourcePack} from a URL and tries to download and hash\n+     * it.\n+     * \n+     * @param url The URL to look in.\n+     * @return A ResourcePack with the specified URL.\n+     * @throws FileNotFoundException If a valid resourcepack could not be\n+     *             downloaded from the URL.\n+     */\n+    ResourcePack fromURL(URL url) throws FileNotFoundException;\n+\n+    /**\n+     * Creates a {@link ResourcePack} from a URL.","path":"src/main/java/org/spongepowered/api/resourcepack/ResourcePackFactory.java","position":46,"original_position":46,"commit_id":"427e9d63c41080c076d2676e1c0b5766c4c18f5d","original_commit_id":"427e9d63c41080c076d2676e1c0b5766c4c18f5d","user":{"login":"kenzierocks","id":2093023,"avatar_url":"https://avatars.githubusercontent.com/u/2093023?v=3","gravatar_id":"","url":"https://api.github.com/users/kenzierocks","html_url":"https://github.com/kenzierocks","followers_url":"https://api.github.com/users/kenzierocks/followers","following_url":"https://api.github.com/users/kenzierocks/following{/other_user}","gists_url":"https://api.github.com/users/kenzierocks/gists{/gist_id}","starred_url":"https://api.github.com/users/kenzierocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenzierocks/subscriptions","organizations_url":"https://api.github.com/users/kenzierocks/orgs","repos_url":"https://api.github.com/users/kenzierocks/repos","events_url":"https://api.github.com/users/kenzierocks/events{/privacy}","received_events_url":"https://api.github.com/users/kenzierocks/received_events","type":"User","site_admin":false},"body":"@gratimax means in the javadocs","created_at":"2015-02-04T18:25:08Z","updated_at":"2015-02-04T18:25:08Z","html_url":"https://github.com/SpongePowered/SpongeAPI/pull/415#discussion_r24105862","pull_request_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415","_links":{"self":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/comments/24105862"},"html":{"href":"https://github.com/SpongePowered/SpongeAPI/pull/415#discussion_r24105862"},"pull_request":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415"}}},"pull_request":{"url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415","id":28048630,"html_url":"https://github.com/SpongePowered/SpongeAPI/pull/415","diff_url":"https://github.com/SpongePowered/SpongeAPI/pull/415.diff","patch_url":"https://github.com/SpongePowered/SpongeAPI/pull/415.patch","issue_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/415","number":415,"state":"open","locked":false,"title":"Add resourcepack support (A bit quirky.)","user":{"login":"AlphaModder","id":2100733,"avatar_url":"https://avatars.githubusercontent.com/u/2100733?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaModder","html_url":"https://github.com/AlphaModder","followers_url":"https://api.github.com/users/AlphaModder/followers","following_url":"https://api.github.com/users/AlphaModder/following{/other_user}","gists_url":"https://api.github.com/users/AlphaModder/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaModder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaModder/subscriptions","organizations_url":"https://api.github.com/users/AlphaModder/orgs","repos_url":"https://api.github.com/users/AlphaModder/repos","events_url":"https://api.github.com/users/AlphaModder/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaModder/received_events","type":"User","site_admin":false},"body":"It's a bit weird, due to the notchcode involved in the MC implementation, but it should work. \r\nA description of a forge implementation: http://pastebin.com/jFJK1JbP \\\r\n\r\n","created_at":"2015-01-26T18:28:21Z","updated_at":"2015-02-04T18:25:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f58341c7bc6f00c114784a35034d04b8d97a983","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415/commits","review_comments_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415/comments","review_comment_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/comments/{number}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/415/comments","statuses_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/statuses/427e9d63c41080c076d2676e1c0b5766c4c18f5d","head":{"label":"AlphaModder:feature/resourcepacks","ref":"feature/resourcepacks","sha":"427e9d63c41080c076d2676e1c0b5766c4c18f5d","user":{"login":"AlphaModder","id":2100733,"avatar_url":"https://avatars.githubusercontent.com/u/2100733?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaModder","html_url":"https://github.com/AlphaModder","followers_url":"https://api.github.com/users/AlphaModder/followers","following_url":"https://api.github.com/users/AlphaModder/following{/other_user}","gists_url":"https://api.github.com/users/AlphaModder/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaModder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaModder/subscriptions","organizations_url":"https://api.github.com/users/AlphaModder/orgs","repos_url":"https://api.github.com/users/AlphaModder/repos","events_url":"https://api.github.com/users/AlphaModder/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaModder/received_events","type":"User","site_admin":false},"repo":{"id":29218531,"name":"SpongeAPI","full_name":"AlphaModder/SpongeAPI","owner":{"login":"AlphaModder","id":2100733,"avatar_url":"https://avatars.githubusercontent.com/u/2100733?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaModder","html_url":"https://github.com/AlphaModder","followers_url":"https://api.github.com/users/AlphaModder/followers","following_url":"https://api.github.com/users/AlphaModder/following{/other_user}","gists_url":"https://api.github.com/users/AlphaModder/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaModder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaModder/subscriptions","organizations_url":"https://api.github.com/users/AlphaModder/orgs","repos_url":"https://api.github.com/users/AlphaModder/repos","events_url":"https://api.github.com/users/AlphaModder/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaModder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlphaModder/SpongeAPI","description":"A Minecraft plugin API","fork":true,"url":"https://api.github.com/repos/AlphaModder/SpongeAPI","forks_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/forks","keys_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/teams","hooks_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/hooks","issue_events_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/issues/events{/number}","events_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/events","assignees_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/assignees{/user}","branches_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/branches{/branch}","tags_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/tags","blobs_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/languages","stargazers_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/stargazers","contributors_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/contributors","subscribers_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/subscribers","subscription_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/subscription","commits_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/issues/comments/{number}","contents_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/contents/{+path}","compare_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/merges","archive_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/downloads","issues_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/issues{/number}","pulls_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/labels{/name}","releases_url":"https://api.github.com/repos/AlphaModder/SpongeAPI/releases{/id}","created_at":"2015-01-14T00:11:45Z","updated_at":"2015-02-02T16:19:53Z","pushed_at":"2015-02-04T18:18:02Z","git_url":"git://github.com/AlphaModder/SpongeAPI.git","ssh_url":"git@github.com:AlphaModder/SpongeAPI.git","clone_url":"https://github.com/AlphaModder/SpongeAPI.git","svn_url":"https://github.com/AlphaModder/SpongeAPI","homepage":"http://www.spongepowered.org/","size":2551,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"SpongePowered:master","ref":"master","sha":"77a469cc929c90f6f841daf98d6a7b0c6809d265","user":{"login":"SpongePowered","id":8683473,"avatar_url":"https://avatars.githubusercontent.com/u/8683473?v=3","gravatar_id":"","url":"https://api.github.com/users/SpongePowered","html_url":"https://github.com/SpongePowered","followers_url":"https://api.github.com/users/SpongePowered/followers","following_url":"https://api.github.com/users/SpongePowered/following{/other_user}","gists_url":"https://api.github.com/users/SpongePowered/gists{/gist_id}","starred_url":"https://api.github.com/users/SpongePowered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpongePowered/subscriptions","organizations_url":"https://api.github.com/users/SpongePowered/orgs","repos_url":"https://api.github.com/users/SpongePowered/repos","events_url":"https://api.github.com/users/SpongePowered/events{/privacy}","received_events_url":"https://api.github.com/users/SpongePowered/received_events","type":"Organization","site_admin":false},"repo":{"id":23770421,"name":"SpongeAPI","full_name":"SpongePowered/SpongeAPI","owner":{"login":"SpongePowered","id":8683473,"avatar_url":"https://avatars.githubusercontent.com/u/8683473?v=3","gravatar_id":"","url":"https://api.github.com/users/SpongePowered","html_url":"https://github.com/SpongePowered","followers_url":"https://api.github.com/users/SpongePowered/followers","following_url":"https://api.github.com/users/SpongePowered/following{/other_user}","gists_url":"https://api.github.com/users/SpongePowered/gists{/gist_id}","starred_url":"https://api.github.com/users/SpongePowered/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpongePowered/subscriptions","organizations_url":"https://api.github.com/users/SpongePowered/orgs","repos_url":"https://api.github.com/users/SpongePowered/repos","events_url":"https://api.github.com/users/SpongePowered/events{/privacy}","received_events_url":"https://api.github.com/users/SpongePowered/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SpongePowered/SpongeAPI","description":"A Minecraft plugin API","fork":false,"url":"https://api.github.com/repos/SpongePowered/SpongeAPI","forks_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/forks","keys_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/teams","hooks_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/hooks","issue_events_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/events{/number}","events_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/events","assignees_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/assignees{/user}","branches_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/branches{/branch}","tags_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/tags","blobs_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/languages","stargazers_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/stargazers","contributors_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/contributors","subscribers_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/subscribers","subscription_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/subscription","commits_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/comments/{number}","contents_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/contents/{+path}","compare_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/merges","archive_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/downloads","issues_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues{/number}","pulls_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/labels{/name}","releases_url":"https://api.github.com/repos/SpongePowered/SpongeAPI/releases{/id}","created_at":"2014-09-07T20:39:25Z","updated_at":"2015-02-04T04:09:45Z","pushed_at":"2015-02-04T12:58:47Z","git_url":"git://github.com/SpongePowered/SpongeAPI.git","ssh_url":"git@github.com:SpongePowered/SpongeAPI.git","clone_url":"https://github.com/SpongePowered/SpongeAPI.git","svn_url":"https://github.com/SpongePowered/SpongeAPI","homepage":"http://www.spongepowered.org/","size":13600,"stargazers_count":727,"watchers_count":727,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":336,"mirror_url":null,"open_issues_count":43,"forks":336,"open_issues":43,"watchers":727,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415"},"html":{"href":"https://github.com/SpongePowered/SpongeAPI/pull/415"},"issue":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/415"},"comments":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/issues/415/comments"},"review_comments":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415/comments"},"review_comment":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/pulls/415/commits"},"statuses":{"href":"https://api.github.com/repos/SpongePowered/SpongeAPI/statuses/427e9d63c41080c076d2676e1c0b5766c4c18f5d"}}}}