{"action":"created","comment":{"url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/comments/92527485","pull_request_review_id":13044666,"id":92527485,"diff_hunk":"@@ -0,0 +1,102 @@\n+package tech.flatstone.appliedlogistics.api.Rotation.impl;\n+\n+import net.minecraft.util.EnumFacing;\n+import tech.flatstone.appliedlogistics.api.Rotation.Rotation.Face;\n+import tech.flatstone.appliedlogistics.api.Rotation.Rotation.IRotationState;\n+import tech.flatstone.appliedlogistics.api.Rotation.Rotation.ISide;\n+\n+import java.util.Arrays;\n+import java.util.List;\n+\n+/**\n+ * Used for only one-directional Rotation: Front\n+ */\n+public class DRotationState implements IRotationState {\n+    private ISide front;\n+    private List<EnumFacing> filter = null;\n+    private int[] defaults = new int[]{2, 1};\n+\n+    public int[] getDefaults() {\n+        return defaults;\n+    }\n+\n+    public DRotationState(EnumFacing Front) {\n+        front = new basicSide(Face.Front, Front);\n+    }\n+\n+    public DRotationState() {\n+        this(EnumFacing.NORTH);\n+    }\n+\n+    @Override\n+    public EnumFacing getbyside(Face side) {\n+        if (side.equals(Face.Front)) return front.getFacing();\n+        else if (side.equals(Face.Back))\n+            return front.getFacing().getOpposite();\n+        if (RotationHelper.isOnSamePlane(RotationHelper.defualtDirection(side), front.getFacing()))\n+            switch (side) {\n+                case Top:\n+                    return EnumFacing.getFront(RotationHelper.coupleBefore(front.getFacing(), 3, 0));\n+                case Bottom:\n+                    return EnumFacing.getFront(RotationHelper.coupleBefore(front.getFacing(), 3, 0)).getOpposite();\n+                case Right:\n+                    return EnumFacing.getFront(RotationHelper.coupleBefore(front.getFacing(), 5, 1));\n+                case Left:\n+                    return EnumFacing.getFront(RotationHelper.coupleBefore(front.getFacing(), 5, 1)).getOpposite();\n+\n+            }\n+        return RotationHelper.defualtDirection(side.Opposite());\n+    }\n+\n+    @Override\n+    public Face getbyEF(EnumFacing facing) {\n+        if (facing.equals(front.getFacing())) return Face.Front;","path":"src/main/java/tech/flatstone/appliedlogistics/api/Rotation/impl/DRotationState.java","position":53,"original_position":53,"commit_id":"1de6a8c83a1ceea2482946e8063a449a30d03e06","original_commit_id":"1de6a8c83a1ceea2482946e8063a449a30d03e06","user":{"login":"FireCIBot","id":18359268,"avatar_url":"https://avatars.githubusercontent.com/u/18359268?v=3","gravatar_id":"","url":"https://api.github.com/users/FireCIBot","html_url":"https://github.com/FireCIBot","followers_url":"https://api.github.com/users/FireCIBot/followers","following_url":"https://api.github.com/users/FireCIBot/following{/other_user}","gists_url":"https://api.github.com/users/FireCIBot/gists{/gist_id}","starred_url":"https://api.github.com/users/FireCIBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FireCIBot/subscriptions","organizations_url":"https://api.github.com/users/FireCIBot/orgs","repos_url":"https://api.github.com/users/FireCIBot/repos","events_url":"https://api.github.com/users/FireCIBot/events{/privacy}","received_events_url":"https://api.github.com/users/FireCIBot/received_events","type":"User","site_admin":false},"body":"![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) At most one statement is allowed per line, but 2 statements were found on this line. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonar.tsr.me/coding_rules#rule_key=squid%3AS00122)\n","created_at":"2016-12-15T01:25:29Z","updated_at":"2016-12-15T01:25:29Z","html_url":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26#discussion_r92527485","pull_request_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/comments/92527485"},"html":{"href":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26#discussion_r92527485"},"pull_request":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26","id":93056164,"html_url":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26","diff_url":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26.diff","patch_url":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26.patch","issue_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/26","number":26,"state":"open","locked":false,"title":"Added Rotation Api.","user":{"login":"sp-guip","id":19161394,"avatar_url":"https://avatars.githubusercontent.com/u/19161394?v=3","gravatar_id":"","url":"https://api.github.com/users/sp-guip","html_url":"https://github.com/sp-guip","followers_url":"https://api.github.com/users/sp-guip/followers","following_url":"https://api.github.com/users/sp-guip/following{/other_user}","gists_url":"https://api.github.com/users/sp-guip/gists{/gist_id}","starred_url":"https://api.github.com/users/sp-guip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sp-guip/subscriptions","organizations_url":"https://api.github.com/users/sp-guip/orgs","repos_url":"https://api.github.com/users/sp-guip/repos","events_url":"https://api.github.com/users/sp-guip/events{/privacy}","received_events_url":"https://api.github.com/users/sp-guip/received_events","type":"User","site_admin":false},"body":"it is still buggy and blocks don't have textures.\r\nit still needs:\r\n- [ ] new modules\r\n- [ ] bug proofing\r\n- [ ] api stability\r\n- [ ] implementation on more then one machine(currently It is just the builder and other machines might crash)\r\n","created_at":"2016-11-09T23:04:18Z","updated_at":"2016-12-15T01:25:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"23f28e14876525d2e7693559cd58d8a3ee04390a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26/commits","review_comments_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26/comments","review_comment_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/26/comments","statuses_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/statuses/1de6a8c83a1ceea2482946e8063a449a30d03e06","head":{"label":"sp-guip:Rotation","ref":"Rotation","sha":"1de6a8c83a1ceea2482946e8063a449a30d03e06","user":{"login":"sp-guip","id":19161394,"avatar_url":"https://avatars.githubusercontent.com/u/19161394?v=3","gravatar_id":"","url":"https://api.github.com/users/sp-guip","html_url":"https://github.com/sp-guip","followers_url":"https://api.github.com/users/sp-guip/followers","following_url":"https://api.github.com/users/sp-guip/following{/other_user}","gists_url":"https://api.github.com/users/sp-guip/gists{/gist_id}","starred_url":"https://api.github.com/users/sp-guip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sp-guip/subscriptions","organizations_url":"https://api.github.com/users/sp-guip/orgs","repos_url":"https://api.github.com/users/sp-guip/repos","events_url":"https://api.github.com/users/sp-guip/events{/privacy}","received_events_url":"https://api.github.com/users/sp-guip/received_events","type":"User","site_admin":false},"repo":{"id":73327933,"name":"AppliedLogistics","full_name":"sp-guip/AppliedLogistics","owner":{"login":"sp-guip","id":19161394,"avatar_url":"https://avatars.githubusercontent.com/u/19161394?v=3","gravatar_id":"","url":"https://api.github.com/users/sp-guip","html_url":"https://github.com/sp-guip","followers_url":"https://api.github.com/users/sp-guip/followers","following_url":"https://api.github.com/users/sp-guip/following{/other_user}","gists_url":"https://api.github.com/users/sp-guip/gists{/gist_id}","starred_url":"https://api.github.com/users/sp-guip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sp-guip/subscriptions","organizations_url":"https://api.github.com/users/sp-guip/orgs","repos_url":"https://api.github.com/users/sp-guip/repos","events_url":"https://api.github.com/users/sp-guip/events{/privacy}","received_events_url":"https://api.github.com/users/sp-guip/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sp-guip/AppliedLogistics","description":null,"fork":true,"url":"https://api.github.com/repos/sp-guip/AppliedLogistics","forks_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/forks","keys_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/teams","hooks_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/hooks","issue_events_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/issues/events{/number}","events_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/events","assignees_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/assignees{/user}","branches_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/branches{/branch}","tags_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/tags","blobs_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/git/refs{/sha}","trees_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/statuses/{sha}","languages_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/languages","stargazers_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/stargazers","contributors_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/contributors","subscribers_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/subscribers","subscription_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/subscription","commits_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/commits{/sha}","git_commits_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/git/commits{/sha}","comments_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/comments{/number}","issue_comment_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/issues/comments{/number}","contents_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/contents/{+path}","compare_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/merges","archive_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/downloads","issues_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/issues{/number}","pulls_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/pulls{/number}","milestones_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/milestones{/number}","notifications_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/labels{/name}","releases_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/releases{/id}","deployments_url":"https://api.github.com/repos/sp-guip/AppliedLogistics/deployments","created_at":"2016-11-09T22:54:11Z","updated_at":"2016-11-09T22:54:13Z","pushed_at":"2016-11-09T22:57:53Z","git_url":"git://github.com/sp-guip/AppliedLogistics.git","ssh_url":"git@github.com:sp-guip/AppliedLogistics.git","clone_url":"https://github.com/sp-guip/AppliedLogistics.git","svn_url":"https://github.com/sp-guip/AppliedLogistics","homepage":null,"size":1562,"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":"develop"}},"base":{"label":"FlatStoneTech:develop","ref":"develop","sha":"a242f44d989a0d1d17206fda803d790380d6bdcb","user":{"login":"FlatStoneTech","id":17367753,"avatar_url":"https://avatars.githubusercontent.com/u/17367753?v=3","gravatar_id":"","url":"https://api.github.com/users/FlatStoneTech","html_url":"https://github.com/FlatStoneTech","followers_url":"https://api.github.com/users/FlatStoneTech/followers","following_url":"https://api.github.com/users/FlatStoneTech/following{/other_user}","gists_url":"https://api.github.com/users/FlatStoneTech/gists{/gist_id}","starred_url":"https://api.github.com/users/FlatStoneTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlatStoneTech/subscriptions","organizations_url":"https://api.github.com/users/FlatStoneTech/orgs","repos_url":"https://api.github.com/users/FlatStoneTech/repos","events_url":"https://api.github.com/users/FlatStoneTech/events{/privacy}","received_events_url":"https://api.github.com/users/FlatStoneTech/received_events","type":"Organization","site_admin":false},"repo":{"id":52101373,"name":"AppliedLogistics","full_name":"FlatStoneTech/AppliedLogistics","owner":{"login":"FlatStoneTech","id":17367753,"avatar_url":"https://avatars.githubusercontent.com/u/17367753?v=3","gravatar_id":"","url":"https://api.github.com/users/FlatStoneTech","html_url":"https://github.com/FlatStoneTech","followers_url":"https://api.github.com/users/FlatStoneTech/followers","following_url":"https://api.github.com/users/FlatStoneTech/following{/other_user}","gists_url":"https://api.github.com/users/FlatStoneTech/gists{/gist_id}","starred_url":"https://api.github.com/users/FlatStoneTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlatStoneTech/subscriptions","organizations_url":"https://api.github.com/users/FlatStoneTech/orgs","repos_url":"https://api.github.com/users/FlatStoneTech/repos","events_url":"https://api.github.com/users/FlatStoneTech/events{/privacy}","received_events_url":"https://api.github.com/users/FlatStoneTech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FlatStoneTech/AppliedLogistics","description":null,"fork":false,"url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics","forks_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/forks","keys_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/teams","hooks_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/hooks","issue_events_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/events{/number}","events_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/events","assignees_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/assignees{/user}","branches_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/branches{/branch}","tags_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/tags","blobs_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/git/refs{/sha}","trees_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/statuses/{sha}","languages_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/languages","stargazers_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/stargazers","contributors_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/contributors","subscribers_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/subscribers","subscription_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/subscription","commits_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/commits{/sha}","git_commits_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/git/commits{/sha}","comments_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/comments{/number}","issue_comment_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/comments{/number}","contents_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/contents/{+path}","compare_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/merges","archive_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/downloads","issues_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues{/number}","pulls_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls{/number}","milestones_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/milestones{/number}","notifications_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/labels{/name}","releases_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/releases{/id}","deployments_url":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/deployments","created_at":"2016-02-19T16:36:44Z","updated_at":"2016-11-29T14:24:40Z","pushed_at":"2016-12-14T04:10:51Z","git_url":"git://github.com/FlatStoneTech/AppliedLogistics.git","ssh_url":"git@github.com:FlatStoneTech/AppliedLogistics.git","clone_url":"https://github.com/FlatStoneTech/AppliedLogistics.git","svn_url":"https://github.com/FlatStoneTech/AppliedLogistics","homepage":null,"size":1776,"stargazers_count":29,"watchers_count":29,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":29,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26"},"html":{"href":"https://github.com/FlatStoneTech/AppliedLogistics/pull/26"},"issue":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/26"},"comments":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/FlatStoneTech/AppliedLogistics/statuses/1de6a8c83a1ceea2482946e8063a449a30d03e06"}}}}
{"actor":{"display_login":"FireCIBot"}}