{"action":"created","comment":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/comments/49140659","id":49140659,"diff_hunk":"@@ -0,0 +1,62 @@\n+package net.minecraftforge.event.world;\n+\n+import net.minecraft.world.World;\n+import net.minecraft.util.BlockPos;\n+import net.minecraftforge.fml.common.eventhandler.Cancelable;\n+import net.minecraftforge.fml.common.eventhandler.Event;\n+\n+public class WeatherEvent {\n+    /**\n+     * WeatherEvent.change is called when the weather in a world changes.<br>\n+     * This event is called when the weather changes in\n+     * WorldInfo.setRaining,\n+     * WorldInfo.setThundering,\n+     * and WorldInfo.setCleanWeatherTime. <br>\n+     * <br>\n+     * This event is {@link Cancelable}. Canceling the event prevents the weather from changing.<br>\n+     * <br>\n+     * This event does not have a result. {@link Event.HasResult} <br>\n+     * <br>\n+     * This event is fired on the {@link MinecraftForge#EVENT_BUS}.<br>\n+     *\n+     * @author MattDahEpic\n+     */\n+    @Cancelable\n+    public static class Change extends WorldEvent {\n+        public final WeatherType changeTo;\n+\n+        public Change (World world, WeatherType type) {\n+            super(world);\n+            this.changeTo = type;\n+        }\n+\n+        public static enum WeatherType {","path":"src/main/java/net/minecraftforge/event/world/WeatherEvent.java","position":33,"original_position":33,"commit_id":"10b4c048ba26b1e2e6709e71c0de59c85c52d67a","original_commit_id":"10b4c048ba26b1e2e6709e71c0de59c85c52d67a","user":{"login":"matthewprenger","id":3399824,"avatar_url":"https://avatars.githubusercontent.com/u/3399824?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewprenger","html_url":"https://github.com/matthewprenger","followers_url":"https://api.github.com/users/matthewprenger/followers","following_url":"https://api.github.com/users/matthewprenger/following{/other_user}","gists_url":"https://api.github.com/users/matthewprenger/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewprenger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewprenger/subscriptions","organizations_url":"https://api.github.com/users/matthewprenger/orgs","repos_url":"https://api.github.com/users/matthewprenger/repos","events_url":"https://api.github.com/users/matthewprenger/events{/privacy}","received_events_url":"https://api.github.com/users/matthewprenger/received_events","type":"User","site_admin":false},"body":"No need for the `static` here. All enums are static by default.","created_at":"2016-01-07T23:23:18Z","updated_at":"2016-01-07T23:23:18Z","html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/2343#discussion_r49140659","pull_request_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343","_links":{"self":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/comments/49140659"},"html":{"href":"https://github.com/MinecraftForge/MinecraftForge/pull/2343#discussion_r49140659"},"pull_request":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343"}}},"pull_request":{"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343","id":55369147,"html_url":"https://github.com/MinecraftForge/MinecraftForge/pull/2343","diff_url":"https://github.com/MinecraftForge/MinecraftForge/pull/2343.diff","patch_url":"https://github.com/MinecraftForge/MinecraftForge/pull/2343.patch","issue_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2343","number":2343,"state":"open","locked":false,"title":"Add weather events","user":{"login":"MattDahEpic","id":7366951,"avatar_url":"https://avatars.githubusercontent.com/u/7366951?v=3","gravatar_id":"","url":"https://api.github.com/users/MattDahEpic","html_url":"https://github.com/MattDahEpic","followers_url":"https://api.github.com/users/MattDahEpic/followers","following_url":"https://api.github.com/users/MattDahEpic/following{/other_user}","gists_url":"https://api.github.com/users/MattDahEpic/gists{/gist_id}","starred_url":"https://api.github.com/users/MattDahEpic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattDahEpic/subscriptions","organizations_url":"https://api.github.com/users/MattDahEpic/orgs","repos_url":"https://api.github.com/users/MattDahEpic/repos","events_url":"https://api.github.com/users/MattDahEpic/events{/privacy}","received_events_url":"https://api.github.com/users/MattDahEpic/received_events","type":"User","site_admin":false},"body":"This PR adds events that are called when the weather is changed and when lightning strikes.","created_at":"2016-01-07T18:01:06Z","updated_at":"2016-01-07T23:23:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19b593f31644afeb47900e67e9802c7dbd030669","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343/commits","review_comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343/comments","review_comment_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2343/comments","statuses_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/statuses/10b4c048ba26b1e2e6709e71c0de59c85c52d67a","head":{"label":"MattDahEpic:master","ref":"master","sha":"10b4c048ba26b1e2e6709e71c0de59c85c52d67a","user":{"login":"MattDahEpic","id":7366951,"avatar_url":"https://avatars.githubusercontent.com/u/7366951?v=3","gravatar_id":"","url":"https://api.github.com/users/MattDahEpic","html_url":"https://github.com/MattDahEpic","followers_url":"https://api.github.com/users/MattDahEpic/followers","following_url":"https://api.github.com/users/MattDahEpic/following{/other_user}","gists_url":"https://api.github.com/users/MattDahEpic/gists{/gist_id}","starred_url":"https://api.github.com/users/MattDahEpic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattDahEpic/subscriptions","organizations_url":"https://api.github.com/users/MattDahEpic/orgs","repos_url":"https://api.github.com/users/MattDahEpic/repos","events_url":"https://api.github.com/users/MattDahEpic/events{/privacy}","received_events_url":"https://api.github.com/users/MattDahEpic/received_events","type":"User","site_admin":false},"repo":{"id":49164580,"name":"MinecraftForge","full_name":"MattDahEpic/MinecraftForge","owner":{"login":"MattDahEpic","id":7366951,"avatar_url":"https://avatars.githubusercontent.com/u/7366951?v=3","gravatar_id":"","url":"https://api.github.com/users/MattDahEpic","html_url":"https://github.com/MattDahEpic","followers_url":"https://api.github.com/users/MattDahEpic/followers","following_url":"https://api.github.com/users/MattDahEpic/following{/other_user}","gists_url":"https://api.github.com/users/MattDahEpic/gists{/gist_id}","starred_url":"https://api.github.com/users/MattDahEpic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattDahEpic/subscriptions","organizations_url":"https://api.github.com/users/MattDahEpic/orgs","repos_url":"https://api.github.com/users/MattDahEpic/repos","events_url":"https://api.github.com/users/MattDahEpic/events{/privacy}","received_events_url":"https://api.github.com/users/MattDahEpic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MattDahEpic/MinecraftForge","description":"Modifications to the Minecraft base files to assist in compatibility between mods.","fork":true,"url":"https://api.github.com/repos/MattDahEpic/MinecraftForge","forks_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/forks","keys_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/teams","hooks_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/hooks","issue_events_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/issues/events{/number}","events_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/events","assignees_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/assignees{/user}","branches_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/branches{/branch}","tags_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/tags","blobs_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/statuses/{sha}","languages_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/languages","stargazers_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/stargazers","contributors_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/contributors","subscribers_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/subscribers","subscription_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/subscription","commits_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/contents/{+path}","compare_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/merges","archive_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/downloads","issues_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/issues{/number}","pulls_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/pulls{/number}","milestones_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/milestones{/number}","notifications_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/labels{/name}","releases_url":"https://api.github.com/repos/MattDahEpic/MinecraftForge/releases{/id}","created_at":"2016-01-06T22:04:26Z","updated_at":"2016-01-06T22:04:29Z","pushed_at":"2016-01-07T23:17:14Z","git_url":"git://github.com/MattDahEpic/MinecraftForge.git","ssh_url":"git@github.com:MattDahEpic/MinecraftForge.git","clone_url":"https://github.com/MattDahEpic/MinecraftForge.git","svn_url":"https://github.com/MattDahEpic/MinecraftForge","homepage":"","size":83336,"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":"MinecraftForge:master","ref":"master","sha":"5c5d946ff56f7e1e900e492d72978d6e927edabc","user":{"login":"MinecraftForge","id":1390178,"avatar_url":"https://avatars.githubusercontent.com/u/1390178?v=3","gravatar_id":"","url":"https://api.github.com/users/MinecraftForge","html_url":"https://github.com/MinecraftForge","followers_url":"https://api.github.com/users/MinecraftForge/followers","following_url":"https://api.github.com/users/MinecraftForge/following{/other_user}","gists_url":"https://api.github.com/users/MinecraftForge/gists{/gist_id}","starred_url":"https://api.github.com/users/MinecraftForge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinecraftForge/subscriptions","organizations_url":"https://api.github.com/users/MinecraftForge/orgs","repos_url":"https://api.github.com/users/MinecraftForge/repos","events_url":"https://api.github.com/users/MinecraftForge/events{/privacy}","received_events_url":"https://api.github.com/users/MinecraftForge/received_events","type":"Organization","site_admin":false},"repo":{"id":3301400,"name":"MinecraftForge","full_name":"MinecraftForge/MinecraftForge","owner":{"login":"MinecraftForge","id":1390178,"avatar_url":"https://avatars.githubusercontent.com/u/1390178?v=3","gravatar_id":"","url":"https://api.github.com/users/MinecraftForge","html_url":"https://github.com/MinecraftForge","followers_url":"https://api.github.com/users/MinecraftForge/followers","following_url":"https://api.github.com/users/MinecraftForge/following{/other_user}","gists_url":"https://api.github.com/users/MinecraftForge/gists{/gist_id}","starred_url":"https://api.github.com/users/MinecraftForge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinecraftForge/subscriptions","organizations_url":"https://api.github.com/users/MinecraftForge/orgs","repos_url":"https://api.github.com/users/MinecraftForge/repos","events_url":"https://api.github.com/users/MinecraftForge/events{/privacy}","received_events_url":"https://api.github.com/users/MinecraftForge/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MinecraftForge/MinecraftForge","description":"Modifications to the Minecraft base files to assist in compatibility between mods.","fork":false,"url":"https://api.github.com/repos/MinecraftForge/MinecraftForge","forks_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/forks","keys_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/teams","hooks_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/hooks","issue_events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/events{/number}","events_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/events","assignees_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/assignees{/user}","branches_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/branches{/branch}","tags_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/tags","blobs_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/statuses/{sha}","languages_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/languages","stargazers_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/stargazers","contributors_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/contributors","subscribers_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/subscribers","subscription_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/subscription","commits_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/contents/{+path}","compare_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/merges","archive_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/downloads","issues_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues{/number}","pulls_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls{/number}","milestones_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/milestones{/number}","notifications_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/labels{/name}","releases_url":"https://api.github.com/repos/MinecraftForge/MinecraftForge/releases{/id}","created_at":"2012-01-30T01:35:01Z","updated_at":"2016-01-07T17:33:42Z","pushed_at":"2016-01-07T23:17:14Z","git_url":"git://github.com/MinecraftForge/MinecraftForge.git","ssh_url":"git@github.com:MinecraftForge/MinecraftForge.git","clone_url":"https://github.com/MinecraftForge/MinecraftForge.git","svn_url":"https://github.com/MinecraftForge/MinecraftForge","homepage":"","size":141149,"stargazers_count":1159,"watchers_count":1159,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":678,"mirror_url":null,"open_issues_count":218,"forks":678,"open_issues":218,"watchers":1159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343"},"html":{"href":"https://github.com/MinecraftForge/MinecraftForge/pull/2343"},"issue":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2343"},"comments":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/issues/2343/comments"},"review_comments":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343/comments"},"review_comment":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/pulls/2343/commits"},"statuses":{"href":"https://api.github.com/repos/MinecraftForge/MinecraftForge/statuses/10b4c048ba26b1e2e6709e71c0de59c85c52d67a"}}}}