GitHub PullRequestReviewCommentEvent at 2014-07-14 13:01:32
Repository: BuildCraft
Actor: tambry
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/comments/14876209","id":14876209,"diff_hunk":"@@ -149,11 +152,77 @@ public void readFromNBT(NBTTagCompound nbttagcompound) {\n \t\torientation = ForgeDirection.values() [nbttagcompound.getByte(\"orientation\")];\n \t}\n \n+    public Position shift(int dir) {\n+        return shift(dir, 1.0);\n+    }\n+\n+    public Position shift(ForgeDirection dir) {\n+        return shift(dir, 1.0);\n+    }\n+\n+    public Position shift(int dir, double steps) {\n+        return shift(ForgeDirection.getOrientation(dir), steps);\n+    }\n+\n+    public Position shift(ForgeDirection dir, double steps) {\n+        return offset(dir.offsetX * steps, dir.offsetY * steps, dir.offsetZ * steps);\n+    }\n+\n+    public Position offset(double x, double y, double z) {\n+        this.x += x;\n+        this.y += y;\n+        this.z += z;\n+        return this;\n+    }\n+\n+    public Position offset(Position pos) {\n+        return offset(pos.x, pos.y, pos.z);\n+    }\n+\n+    public Block getBlock(IBlockAccess iba) {\n+        return iba.getBlock((int) x, (int) y, (int) z);\n+    }\n+\n+    public int getMeta(IBlockAccess iba) {\n+        return iba.getBlockMetadata((int) x, (int) y, (int) z);\n+    }\n+\n+    public TileEntity getTile(IBlockAccess iba) {\n+        return iba.getTileEntity((int) x, (int) y, (int) z);\n+    }\n+\n+    public boolean blockExists(IBlockAccess wrd) {\n+        return !getBlock(wrd).isAir(wrd, (int) x, (int) y, (int) z);\n+    }\n+\n+    public Position setBlock(World wrd, Block block) {\n+        wrd.setBlock((int) x, (int) y, (int) z, block);\n+        return this;\n+    }\n+\n+    public Position setBlock(World wrd, Block block, int meta) {\n+        wrd.setBlock((int) x, (int) y, (int) z, block, meta, 3);\n+        return this;\n+    }\n+\n+    public Position setMeta(World wrd, int meta) {\n+        wrd.setBlockMetadataWithNotify((int) x, (int) y, (int) z, meta, 3);\n+        return this;\n+    }\n+\n+    public boolean destroyBlock(World wrd, boolean doDrop) {\n+        return wrd.func_147480_a((int) x, (int) y, (int) z, doDrop);\n+    }","path":"api/buildcraft/api/core/Position.java","position":77,"original_position":77,"commit_id":"2e2816f666a571598d41e35daeda160b6d9cd241","original_commit_id":"2e2816f666a571598d41e35daeda160b6d9cd241","user":{"login":"tambry","id":1827708,"avatar_url":"https://avatars.githubusercontent.com/u/1827708?","gravatar_id":"5b6d86bc4aa79d2cbc04953ff4b88a0f","url":"https://api.github.com/users/tambry","html_url":"https://github.com/tambry","followers_url":"https://api.github.com/users/tambry/followers","following_url":"https://api.github.com/users/tambry/following{/other_user}","gists_url":"https://api.github.com/users/tambry/gists{/gist_id}","starred_url":"https://api.github.com/users/tambry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tambry/subscriptions","organizations_url":"https://api.github.com/users/tambry/orgs","repos_url":"https://api.github.com/users/tambry/repos","events_url":"https://api.github.com/users/tambry/events{/privacy}","received_events_url":"https://api.github.com/users/tambry/received_events","type":"User","site_admin":false},"body":"Up to shift() weirdly tabbed...","created_at":"2014-07-14T13:01:32Z","updated_at":"2014-07-14T13:01:32Z","html_url":"https://github.com/BuildCraft/BuildCraft/pull/1787#discussion_r14876209","pull_request_url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787","_links":{"self":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/comments/14876209"},"html":{"href":"https://github.com/BuildCraft/BuildCraft/pull/1787#discussion_r14876209"},"pull_request":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787"}}},"pull_request":{"url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787","id":15744670,"html_url":"https://github.com/BuildCraft/BuildCraft/pull/1787","diff_url":"https://github.com/BuildCraft/BuildCraft/pull/1787.diff","patch_url":"https://github.com/BuildCraft/BuildCraft/pull/1787.patch","issue_url":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/1787","number":1787,"state":"open","title":"Stripes pipe API","user":{"login":"anti344","id":3393390,"avatar_url":"https://avatars.githubusercontent.com/u/3393390?","gravatar_id":"b9dc629e7c6ec25b976f24c4bfd40246","url":"https://api.github.com/users/anti344","html_url":"https://github.com/anti344","followers_url":"https://api.github.com/users/anti344/followers","following_url":"https://api.github.com/users/anti344/following{/other_user}","gists_url":"https://api.github.com/users/anti344/gists{/gist_id}","starred_url":"https://api.github.com/users/anti344/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anti344/subscriptions","organizations_url":"https://api.github.com/users/anti344/orgs","repos_url":"https://api.github.com/users/anti344/repos","events_url":"https://api.github.com/users/anti344/events{/privacy}","received_events_url":"https://api.github.com/users/anti344/received_events","type":"User","site_admin":false},"body":"Sorry about my Location class, but it SOO USEFUL.","created_at":"2014-05-11T17:56:46Z","updated_at":"2014-07-14T13:01:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6fd6412f0668da124a9d7cd28d4234ffe1768ad1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787/commits","review_comments_url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787/comments","review_comment_url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/comments/{number}","comments_url":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/1787/comments","statuses_url":"https://api.github.com/repos/BuildCraft/BuildCraft/statuses/2e2816f666a571598d41e35daeda160b6d9cd241","head":{"label":"anti344:6.1.x","ref":"6.1.x","sha":"2e2816f666a571598d41e35daeda160b6d9cd241","user":{"login":"anti344","id":3393390,"avatar_url":"https://avatars.githubusercontent.com/u/3393390?","gravatar_id":"b9dc629e7c6ec25b976f24c4bfd40246","url":"https://api.github.com/users/anti344","html_url":"https://github.com/anti344","followers_url":"https://api.github.com/users/anti344/followers","following_url":"https://api.github.com/users/anti344/following{/other_user}","gists_url":"https://api.github.com/users/anti344/gists{/gist_id}","starred_url":"https://api.github.com/users/anti344/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anti344/subscriptions","organizations_url":"https://api.github.com/users/anti344/orgs","repos_url":"https://api.github.com/users/anti344/repos","events_url":"https://api.github.com/users/anti344/events{/privacy}","received_events_url":"https://api.github.com/users/anti344/received_events","type":"User","site_admin":false},"repo":{"id":19639055,"name":"BuildCraft","full_name":"anti344/BuildCraft","owner":{"login":"anti344","id":3393390,"avatar_url":"https://avatars.githubusercontent.com/u/3393390?","gravatar_id":"b9dc629e7c6ec25b976f24c4bfd40246","url":"https://api.github.com/users/anti344","html_url":"https://github.com/anti344","followers_url":"https://api.github.com/users/anti344/followers","following_url":"https://api.github.com/users/anti344/following{/other_user}","gists_url":"https://api.github.com/users/anti344/gists{/gist_id}","starred_url":"https://api.github.com/users/anti344/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anti344/subscriptions","organizations_url":"https://api.github.com/users/anti344/orgs","repos_url":"https://api.github.com/users/anti344/repos","events_url":"https://api.github.com/users/anti344/events{/privacy}","received_events_url":"https://api.github.com/users/anti344/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anti344/BuildCraft","description":"BuildCraft","fork":true,"url":"https://api.github.com/repos/anti344/BuildCraft","forks_url":"https://api.github.com/repos/anti344/BuildCraft/forks","keys_url":"https://api.github.com/repos/anti344/BuildCraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anti344/BuildCraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anti344/BuildCraft/teams","hooks_url":"https://api.github.com/repos/anti344/BuildCraft/hooks","issue_events_url":"https://api.github.com/repos/anti344/BuildCraft/issues/events{/number}","events_url":"https://api.github.com/repos/anti344/BuildCraft/events","assignees_url":"https://api.github.com/repos/anti344/BuildCraft/assignees{/user}","branches_url":"https://api.github.com/repos/anti344/BuildCraft/branches{/branch}","tags_url":"https://api.github.com/repos/anti344/BuildCraft/tags","blobs_url":"https://api.github.com/repos/anti344/BuildCraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anti344/BuildCraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anti344/BuildCraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/anti344/BuildCraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anti344/BuildCraft/statuses/{sha}","languages_url":"https://api.github.com/repos/anti344/BuildCraft/languages","stargazers_url":"https://api.github.com/repos/anti344/BuildCraft/stargazers","contributors_url":"https://api.github.com/repos/anti344/BuildCraft/contributors","subscribers_url":"https://api.github.com/repos/anti344/BuildCraft/subscribers","subscription_url":"https://api.github.com/repos/anti344/BuildCraft/subscription","commits_url":"https://api.github.com/repos/anti344/BuildCraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/anti344/BuildCraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/anti344/BuildCraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/anti344/BuildCraft/issues/comments/{number}","contents_url":"https://api.github.com/repos/anti344/BuildCraft/contents/{+path}","compare_url":"https://api.github.com/repos/anti344/BuildCraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anti344/BuildCraft/merges","archive_url":"https://api.github.com/repos/anti344/BuildCraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anti344/BuildCraft/downloads","issues_url":"https://api.github.com/repos/anti344/BuildCraft/issues{/number}","pulls_url":"https://api.github.com/repos/anti344/BuildCraft/pulls{/number}","milestones_url":"https://api.github.com/repos/anti344/BuildCraft/milestones{/number}","notifications_url":"https://api.github.com/repos/anti344/BuildCraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anti344/BuildCraft/labels{/name}","releases_url":"https://api.github.com/repos/anti344/BuildCraft/releases{/id}","created_at":"2014-05-10T10:42:35Z","updated_at":"2014-06-30T13:59:04Z","pushed_at":"2014-07-13T17:38:07Z","git_url":"git://github.com/anti344/BuildCraft.git","ssh_url":"git@github.com:anti344/BuildCraft.git","clone_url":"https://github.com/anti344/BuildCraft.git","svn_url":"https://github.com/anti344/BuildCraft","homepage":"http://www.mod-buildcraft.com","size":11401,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"6.1.x"}},"base":{"label":"BuildCraft:6.1.x","ref":"6.1.x","sha":"bb72ff14ecb7897412503aaf24098e899d7a872a","user":{"login":"BuildCraft","id":3163754,"avatar_url":"https://avatars.githubusercontent.com/u/3163754?","gravatar_id":"8e499214d81ac3a09a70a37065099f4c","url":"https://api.github.com/users/BuildCraft","html_url":"https://github.com/BuildCraft","followers_url":"https://api.github.com/users/BuildCraft/followers","following_url":"https://api.github.com/users/BuildCraft/following{/other_user}","gists_url":"https://api.github.com/users/BuildCraft/gists{/gist_id}","starred_url":"https://api.github.com/users/BuildCraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuildCraft/subscriptions","organizations_url":"https://api.github.com/users/BuildCraft/orgs","repos_url":"https://api.github.com/users/BuildCraft/repos","events_url":"https://api.github.com/users/BuildCraft/events{/privacy}","received_events_url":"https://api.github.com/users/BuildCraft/received_events","type":"Organization","site_admin":false},"repo":{"id":4039952,"name":"BuildCraft","full_name":"BuildCraft/BuildCraft","owner":{"login":"BuildCraft","id":3163754,"avatar_url":"https://avatars.githubusercontent.com/u/3163754?","gravatar_id":"8e499214d81ac3a09a70a37065099f4c","url":"https://api.github.com/users/BuildCraft","html_url":"https://github.com/BuildCraft","followers_url":"https://api.github.com/users/BuildCraft/followers","following_url":"https://api.github.com/users/BuildCraft/following{/other_user}","gists_url":"https://api.github.com/users/BuildCraft/gists{/gist_id}","starred_url":"https://api.github.com/users/BuildCraft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuildCraft/subscriptions","organizations_url":"https://api.github.com/users/BuildCraft/orgs","repos_url":"https://api.github.com/users/BuildCraft/repos","events_url":"https://api.github.com/users/BuildCraft/events{/privacy}","received_events_url":"https://api.github.com/users/BuildCraft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BuildCraft/BuildCraft","description":"BuildCraft","fork":false,"url":"https://api.github.com/repos/BuildCraft/BuildCraft","forks_url":"https://api.github.com/repos/BuildCraft/BuildCraft/forks","keys_url":"https://api.github.com/repos/BuildCraft/BuildCraft/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BuildCraft/BuildCraft/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BuildCraft/BuildCraft/teams","hooks_url":"https://api.github.com/repos/BuildCraft/BuildCraft/hooks","issue_events_url":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/events{/number}","events_url":"https://api.github.com/repos/BuildCraft/BuildCraft/events","assignees_url":"https://api.github.com/repos/BuildCraft/BuildCraft/assignees{/user}","branches_url":"https://api.github.com/repos/BuildCraft/BuildCraft/branches{/branch}","tags_url":"https://api.github.com/repos/BuildCraft/BuildCraft/tags","blobs_url":"https://api.github.com/repos/BuildCraft/BuildCraft/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BuildCraft/BuildCraft/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BuildCraft/BuildCraft/git/refs{/sha}","trees_url":"https://api.github.com/repos/BuildCraft/BuildCraft/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BuildCraft/BuildCraft/statuses/{sha}","languages_url":"https://api.github.com/repos/BuildCraft/BuildCraft/languages","stargazers_url":"https://api.github.com/repos/BuildCraft/BuildCraft/stargazers","contributors_url":"https://api.github.com/repos/BuildCraft/BuildCraft/contributors","subscribers_url":"https://api.github.com/repos/BuildCraft/BuildCraft/subscribers","subscription_url":"https://api.github.com/repos/BuildCraft/BuildCraft/subscription","commits_url":"https://api.github.com/repos/BuildCraft/BuildCraft/commits{/sha}","git_commits_url":"https://api.github.com/repos/BuildCraft/BuildCraft/git/commits{/sha}","comments_url":"https://api.github.com/repos/BuildCraft/BuildCraft/comments{/number}","issue_comment_url":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/comments/{number}","contents_url":"https://api.github.com/repos/BuildCraft/BuildCraft/contents/{+path}","compare_url":"https://api.github.com/repos/BuildCraft/BuildCraft/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BuildCraft/BuildCraft/merges","archive_url":"https://api.github.com/repos/BuildCraft/BuildCraft/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BuildCraft/BuildCraft/downloads","issues_url":"https://api.github.com/repos/BuildCraft/BuildCraft/issues{/number}","pulls_url":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls{/number}","milestones_url":"https://api.github.com/repos/BuildCraft/BuildCraft/milestones{/number}","notifications_url":"https://api.github.com/repos/BuildCraft/BuildCraft/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BuildCraft/BuildCraft/labels{/name}","releases_url":"https://api.github.com/repos/BuildCraft/BuildCraft/releases{/id}","created_at":"2012-04-16T10:57:39Z","updated_at":"2014-07-13T20:49:16Z","pushed_at":"2014-07-11T22:54:00Z","git_url":"git://github.com/BuildCraft/BuildCraft.git","ssh_url":"git@github.com:BuildCraft/BuildCraft.git","clone_url":"https://github.com/BuildCraft/BuildCraft.git","svn_url":"https://github.com/BuildCraft/BuildCraft","homepage":"http://www.mod-buildcraft.com","size":32557,"stargazers_count":676,"watchers_count":676,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"forks_count":414,"mirror_url":null,"open_issues_count":41,"forks":414,"open_issues":41,"watchers":676,"default_branch":"6.0.x"}},"_links":{"self":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787"},"html":{"href":"https://github.com/BuildCraft/BuildCraft/pull/1787"},"issue":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/1787"},"comments":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/issues/1787/comments"},"review_comments":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787/comments"},"review_comment":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/pulls/1787/commits"},"statuses":{"href":"https://api.github.com/repos/BuildCraft/BuildCraft/statuses/2e2816f666a571598d41e35daeda160b6d9cd241"}}}}