{"action":"created","comment":{"url":"https://api.github.com/repos/PaperMC/Paper/pulls/comments/83583829","pull_request_review_id":4417689,"id":83583829,"diff_hunk":"@@ -0,0 +1,85 @@\n+From f95873a6fec480c9b095420dc83d2bee2e7f89b9 Mon Sep 17 00:00:00 2001\n+From: AlphaBlend <whizkid3000@hotmail.com>\n+Date: Sun, 16 Oct 2016 23:19:34 -0700\n+Subject: [PATCH] Add EntityZapEvent, replace PigZapEvent, include villagers\n+\n+\n+diff --git a/src/main/java/com/destroystokyo/paper/event/entity/EntityZapEvent.java b/src/main/java/com/destroystokyo/paper/event/entity/EntityZapEvent.java\n+new file mode 100644\n+index 0000000..89a9fd3\n+--- /dev/null\n++++ b/src/main/java/com/destroystokyo/paper/event/entity/EntityZapEvent.java\n+@@ -0,0 +1,55 @@\n++package com.destroystokyo.paper.event.entity;\n++\n++import org.bukkit.entity.Entity;\n++import org.bukkit.entity.LightningStrike;\n++import org.bukkit.event.Cancellable;\n++import org.bukkit.event.HandlerList;\n++import org.bukkit.event.entity.EntityEvent;\n++\n++/**\n++ *  Fired when lightning strikes an entity\n++ */\n++public class EntityZapEvent extends EntityEvent implements Cancellable {\n++    private static final HandlerList handlers = new HandlerList();\n++    private boolean cancelled;\n++    private final LightningStrike bolt;\n++    private final Entity changedEntity;\n++\n++    public EntityZapEvent(final Entity entity, final LightningStrike bolt, final Entity changedEntity) {\n++        super(entity);\n++        this.bolt = bolt;\n++        this.changedEntity = changedEntity;\n++    }\n++\n++    public boolean isCancelled() {\n++        return cancelled;\n++    }\n++\n++    public void setCancelled(boolean cancel) {\n++        this.cancelled = cancel;\n++    }\n++\n++    /**\n++     * Gets the lightning bolt that is striking the entity.\n++     * @return The lightning bolt responsible for this event\n++     */\n++    public LightningStrike getBolt() {\n++        return bolt;\n++    }\n++\n++    /**\n++     * Gets the entity that will replace the struck entity.\n++     * @return The entity that will replace the struck entity\n++     */\n++    public Entity getChangedEntity() {\n++        return changedEntity;\n++    }\n++\n++    public HandlerList getHandlers() {","path":"Spigot-API-Patches/0040-Add-EntityZapEvent-replace-PigZapEvent-include-villa.patch","position":60,"original_position":60,"commit_id":"a9a9e003a403acea879a0f35f88c9d1d12209d90","original_commit_id":"a9a9e003a403acea879a0f35f88c9d1d12209d90","user":{"login":"kashike","id":5474071,"avatar_url":"https://avatars.githubusercontent.com/u/5474071?v=3","gravatar_id":"","url":"https://api.github.com/users/kashike","html_url":"https://github.com/kashike","followers_url":"https://api.github.com/users/kashike/followers","following_url":"https://api.github.com/users/kashike/following{/other_user}","gists_url":"https://api.github.com/users/kashike/gists{/gist_id}","starred_url":"https://api.github.com/users/kashike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashike/subscriptions","organizations_url":"https://api.github.com/users/kashike/orgs","repos_url":"https://api.github.com/users/kashike/repos","events_url":"https://api.github.com/users/kashike/events{/privacy}","received_events_url":"https://api.github.com/users/kashike/received_events","type":"User","site_admin":false},"body":"`@Override`","created_at":"2016-10-17T06:35:01Z","updated_at":"2016-10-17T06:36:33Z","html_url":"https://github.com/PaperMC/Paper/pull/449#discussion_r83583829","pull_request_url":"https://api.github.com/repos/PaperMC/Paper/pulls/449","_links":{"self":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/comments/83583829"},"html":{"href":"https://github.com/PaperMC/Paper/pull/449#discussion_r83583829"},"pull_request":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/449"}}},"pull_request":{"url":"https://api.github.com/repos/PaperMC/Paper/pulls/449","id":89567382,"html_url":"https://github.com/PaperMC/Paper/pull/449","diff_url":"https://github.com/PaperMC/Paper/pull/449.diff","patch_url":"https://github.com/PaperMC/Paper/pull/449.patch","issue_url":"https://api.github.com/repos/PaperMC/Paper/issues/449","number":449,"state":"open","locked":false,"title":"Add EntityZapEvent, replace PigZapEvent, include villagers","user":{"login":"AlphaBlend","id":437096,"avatar_url":"https://avatars.githubusercontent.com/u/437096?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaBlend","html_url":"https://github.com/AlphaBlend","followers_url":"https://api.github.com/users/AlphaBlend/followers","following_url":"https://api.github.com/users/AlphaBlend/following{/other_user}","gists_url":"https://api.github.com/users/AlphaBlend/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaBlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaBlend/subscriptions","organizations_url":"https://api.github.com/users/AlphaBlend/orgs","repos_url":"https://api.github.com/users/AlphaBlend/repos","events_url":"https://api.github.com/users/AlphaBlend/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaBlend/received_events","type":"User","site_admin":false},"body":"This PR does 2 things. First of all, it adds a missing event for villagers getting zapped by lightning. Secondly, it creates a generalized event, EntityZapEvent, which also replaces the current PigZapEvent which has been deprecated.","created_at":"2016-10-17T06:33:39Z","updated_at":"2016-10-17T06:36:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74b3174653da7c3c598ab3be8249fe64fc848c83","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaperMC/Paper/pulls/449/commits","review_comments_url":"https://api.github.com/repos/PaperMC/Paper/pulls/449/comments","review_comment_url":"https://api.github.com/repos/PaperMC/Paper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaperMC/Paper/issues/449/comments","statuses_url":"https://api.github.com/repos/PaperMC/Paper/statuses/a9a9e003a403acea879a0f35f88c9d1d12209d90","head":{"label":"AlphaBlend:EntityZapEvent","ref":"EntityZapEvent","sha":"a9a9e003a403acea879a0f35f88c9d1d12209d90","user":{"login":"AlphaBlend","id":437096,"avatar_url":"https://avatars.githubusercontent.com/u/437096?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaBlend","html_url":"https://github.com/AlphaBlend","followers_url":"https://api.github.com/users/AlphaBlend/followers","following_url":"https://api.github.com/users/AlphaBlend/following{/other_user}","gists_url":"https://api.github.com/users/AlphaBlend/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaBlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaBlend/subscriptions","organizations_url":"https://api.github.com/users/AlphaBlend/orgs","repos_url":"https://api.github.com/users/AlphaBlend/repos","events_url":"https://api.github.com/users/AlphaBlend/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaBlend/received_events","type":"User","site_admin":false},"repo":{"id":66005719,"name":"Paper","full_name":"AlphaBlend/Paper","owner":{"login":"AlphaBlend","id":437096,"avatar_url":"https://avatars.githubusercontent.com/u/437096?v=3","gravatar_id":"","url":"https://api.github.com/users/AlphaBlend","html_url":"https://github.com/AlphaBlend","followers_url":"https://api.github.com/users/AlphaBlend/followers","following_url":"https://api.github.com/users/AlphaBlend/following{/other_user}","gists_url":"https://api.github.com/users/AlphaBlend/gists{/gist_id}","starred_url":"https://api.github.com/users/AlphaBlend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlphaBlend/subscriptions","organizations_url":"https://api.github.com/users/AlphaBlend/orgs","repos_url":"https://api.github.com/users/AlphaBlend/repos","events_url":"https://api.github.com/users/AlphaBlend/events{/privacy}","received_events_url":"https://api.github.com/users/AlphaBlend/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlphaBlend/Paper","description":"High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.","fork":true,"url":"https://api.github.com/repos/AlphaBlend/Paper","forks_url":"https://api.github.com/repos/AlphaBlend/Paper/forks","keys_url":"https://api.github.com/repos/AlphaBlend/Paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlphaBlend/Paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlphaBlend/Paper/teams","hooks_url":"https://api.github.com/repos/AlphaBlend/Paper/hooks","issue_events_url":"https://api.github.com/repos/AlphaBlend/Paper/issues/events{/number}","events_url":"https://api.github.com/repos/AlphaBlend/Paper/events","assignees_url":"https://api.github.com/repos/AlphaBlend/Paper/assignees{/user}","branches_url":"https://api.github.com/repos/AlphaBlend/Paper/branches{/branch}","tags_url":"https://api.github.com/repos/AlphaBlend/Paper/tags","blobs_url":"https://api.github.com/repos/AlphaBlend/Paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlphaBlend/Paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlphaBlend/Paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlphaBlend/Paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlphaBlend/Paper/statuses/{sha}","languages_url":"https://api.github.com/repos/AlphaBlend/Paper/languages","stargazers_url":"https://api.github.com/repos/AlphaBlend/Paper/stargazers","contributors_url":"https://api.github.com/repos/AlphaBlend/Paper/contributors","subscribers_url":"https://api.github.com/repos/AlphaBlend/Paper/subscribers","subscription_url":"https://api.github.com/repos/AlphaBlend/Paper/subscription","commits_url":"https://api.github.com/repos/AlphaBlend/Paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlphaBlend/Paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlphaBlend/Paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlphaBlend/Paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlphaBlend/Paper/contents/{+path}","compare_url":"https://api.github.com/repos/AlphaBlend/Paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlphaBlend/Paper/merges","archive_url":"https://api.github.com/repos/AlphaBlend/Paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlphaBlend/Paper/downloads","issues_url":"https://api.github.com/repos/AlphaBlend/Paper/issues{/number}","pulls_url":"https://api.github.com/repos/AlphaBlend/Paper/pulls{/number}","milestones_url":"https://api.github.com/repos/AlphaBlend/Paper/milestones{/number}","notifications_url":"https://api.github.com/repos/AlphaBlend/Paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlphaBlend/Paper/labels{/name}","releases_url":"https://api.github.com/repos/AlphaBlend/Paper/releases{/id}","deployments_url":"https://api.github.com/repos/AlphaBlend/Paper/deployments","created_at":"2016-08-18T14:51:01Z","updated_at":"2016-08-18T14:51:03Z","pushed_at":"2016-10-17T06:27:09Z","git_url":"git://github.com/AlphaBlend/Paper.git","ssh_url":"git@github.com:AlphaBlend/Paper.git","clone_url":"https://github.com/AlphaBlend/Paper.git","svn_url":"https://github.com/AlphaBlend/Paper","homepage":"https://aquifermc.org/","size":6775,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"master"}},"base":{"label":"PaperMC:master","ref":"master","sha":"2645ee04aebe8cd04a1db6c29d51f68cd3040cd4","user":{"login":"PaperMC","id":7608950,"avatar_url":"https://avatars.githubusercontent.com/u/7608950?v=3","gravatar_id":"","url":"https://api.github.com/users/PaperMC","html_url":"https://github.com/PaperMC","followers_url":"https://api.github.com/users/PaperMC/followers","following_url":"https://api.github.com/users/PaperMC/following{/other_user}","gists_url":"https://api.github.com/users/PaperMC/gists{/gist_id}","starred_url":"https://api.github.com/users/PaperMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaperMC/subscriptions","organizations_url":"https://api.github.com/users/PaperMC/orgs","repos_url":"https://api.github.com/users/PaperMC/repos","events_url":"https://api.github.com/users/PaperMC/events{/privacy}","received_events_url":"https://api.github.com/users/PaperMC/received_events","type":"Organization","site_admin":false},"repo":{"id":50160261,"name":"Paper","full_name":"PaperMC/Paper","owner":{"login":"PaperMC","id":7608950,"avatar_url":"https://avatars.githubusercontent.com/u/7608950?v=3","gravatar_id":"","url":"https://api.github.com/users/PaperMC","html_url":"https://github.com/PaperMC","followers_url":"https://api.github.com/users/PaperMC/followers","following_url":"https://api.github.com/users/PaperMC/following{/other_user}","gists_url":"https://api.github.com/users/PaperMC/gists{/gist_id}","starred_url":"https://api.github.com/users/PaperMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaperMC/subscriptions","organizations_url":"https://api.github.com/users/PaperMC/orgs","repos_url":"https://api.github.com/users/PaperMC/repos","events_url":"https://api.github.com/users/PaperMC/events{/privacy}","received_events_url":"https://api.github.com/users/PaperMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaperMC/Paper","description":"High performance Spigot fork that aims to fix gameplay and mechanics inconsistencies.","fork":false,"url":"https://api.github.com/repos/PaperMC/Paper","forks_url":"https://api.github.com/repos/PaperMC/Paper/forks","keys_url":"https://api.github.com/repos/PaperMC/Paper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaperMC/Paper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaperMC/Paper/teams","hooks_url":"https://api.github.com/repos/PaperMC/Paper/hooks","issue_events_url":"https://api.github.com/repos/PaperMC/Paper/issues/events{/number}","events_url":"https://api.github.com/repos/PaperMC/Paper/events","assignees_url":"https://api.github.com/repos/PaperMC/Paper/assignees{/user}","branches_url":"https://api.github.com/repos/PaperMC/Paper/branches{/branch}","tags_url":"https://api.github.com/repos/PaperMC/Paper/tags","blobs_url":"https://api.github.com/repos/PaperMC/Paper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaperMC/Paper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaperMC/Paper/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaperMC/Paper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaperMC/Paper/statuses/{sha}","languages_url":"https://api.github.com/repos/PaperMC/Paper/languages","stargazers_url":"https://api.github.com/repos/PaperMC/Paper/stargazers","contributors_url":"https://api.github.com/repos/PaperMC/Paper/contributors","subscribers_url":"https://api.github.com/repos/PaperMC/Paper/subscribers","subscription_url":"https://api.github.com/repos/PaperMC/Paper/subscription","commits_url":"https://api.github.com/repos/PaperMC/Paper/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaperMC/Paper/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaperMC/Paper/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaperMC/Paper/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaperMC/Paper/contents/{+path}","compare_url":"https://api.github.com/repos/PaperMC/Paper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaperMC/Paper/merges","archive_url":"https://api.github.com/repos/PaperMC/Paper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaperMC/Paper/downloads","issues_url":"https://api.github.com/repos/PaperMC/Paper/issues{/number}","pulls_url":"https://api.github.com/repos/PaperMC/Paper/pulls{/number}","milestones_url":"https://api.github.com/repos/PaperMC/Paper/milestones{/number}","notifications_url":"https://api.github.com/repos/PaperMC/Paper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaperMC/Paper/labels{/name}","releases_url":"https://api.github.com/repos/PaperMC/Paper/releases{/id}","deployments_url":"https://api.github.com/repos/PaperMC/Paper/deployments","created_at":"2016-01-22T05:40:19Z","updated_at":"2016-10-09T02:16:09Z","pushed_at":"2016-10-17T06:33:40Z","git_url":"git://github.com/PaperMC/Paper.git","ssh_url":"git@github.com:PaperMC/Paper.git","clone_url":"https://github.com/PaperMC/Paper.git","svn_url":"https://github.com/PaperMC/Paper","homepage":"https://aquifermc.org/","size":7886,"stargazers_count":121,"watchers_count":121,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":38,"forks":84,"open_issues":38,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/449"},"html":{"href":"https://github.com/PaperMC/Paper/pull/449"},"issue":{"href":"https://api.github.com/repos/PaperMC/Paper/issues/449"},"comments":{"href":"https://api.github.com/repos/PaperMC/Paper/issues/449/comments"},"review_comments":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/449/comments"},"review_comment":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaperMC/Paper/pulls/449/commits"},"statuses":{"href":"https://api.github.com/repos/PaperMC/Paper/statuses/a9a9e003a403acea879a0f35f88c9d1d12209d90"}}}}
{"actor":{"display_login":"kashike"}}