{"action":"opened","number":913,"pull_request":{"url":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913","id":42310108,"html_url":"https://github.com/sinkillerj/ProjectE/pull/913","diff_url":"https://github.com/sinkillerj/ProjectE/pull/913.diff","patch_url":"https://github.com/sinkillerj/ProjectE/pull/913.patch","issue_url":"https://api.github.com/repos/sinkillerj/ProjectE/issues/913","number":913,"state":"open","locked":false,"title":"Shiny API additions","user":{"login":"williewillus","id":2015032,"avatar_url":"https://avatars.githubusercontent.com/u/2015032?v=3","gravatar_id":"","url":"https://api.github.com/users/williewillus","html_url":"https://github.com/williewillus","followers_url":"https://api.github.com/users/williewillus/followers","following_url":"https://api.github.com/users/williewillus/following{/other_user}","gists_url":"https://api.github.com/users/williewillus/gists{/gist_id}","starred_url":"https://api.github.com/users/williewillus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williewillus/subscriptions","organizations_url":"https://api.github.com/users/williewillus/orgs","repos_url":"https://api.github.com/users/williewillus/repos","events_url":"https://api.github.com/users/williewillus/events{/privacy}","received_events_url":"https://api.github.com/users/williewillus/received_events","type":"User","site_admin":false},"body":"Some API additions that I felt would be needed in my (potentially?) upcoming addon\r\n\r\nNot done yet, but I figure I'd get it up first and finish later\r\n\r\nWhat it does:\r\n* Abstract out items that can store publicly-accessible emc into IItemEmc, inspiration drawn from RF API's IEnergyContainerItem. This allows addons to make their own \"EMC battery\" type items, as well as addon machines to do things such as charge klein stars or other EMC batteries. The only item in ProjectE that implements this interface (and thus has \"publicly-accessible\" emc) is the Klein Star. All hardcoded checks for a klein star have been replaced with checks for IItemEmc.\r\n* (Not done yet) Enrich the Tile Entity API interfaces to allow for EMC providers/acceptors, etc, also inspired by  (but will not be as complicated as) the RF API. This will allow addon makers to do things like create \"EMC tubes\" or other ways to transport EMC around without using the rather vague ITileEmc.\r\n\r\nNotes:\r\n* You may say ints get replaced with doubles in more than a few places. This is just for display - no mechanics have been changed. All vanilla PE machines and items still store as doubles, and are still subject to their limit at Integer.MAX_VALUE. This change is because we can't guard against an addon having an emc battery that goes beyond the int range (Klein Star Vartext :p) but still want to display them properly in for example the collector or relay or tooltip. All double values are truncated to 2 decimal places before drawing.","created_at":"2015-08-13T02:35:55Z","updated_at":"2015-08-13T02:35:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913/commits","review_comments_url":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913/comments","review_comment_url":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sinkillerj/ProjectE/issues/913/comments","statuses_url":"https://api.github.com/repos/sinkillerj/ProjectE/statuses/cffbbf46bd1c2c23a78a79f976596a89841fb626","head":{"label":"williewillus:apitweaks","ref":"apitweaks","sha":"cffbbf46bd1c2c23a78a79f976596a89841fb626","user":{"login":"williewillus","id":2015032,"avatar_url":"https://avatars.githubusercontent.com/u/2015032?v=3","gravatar_id":"","url":"https://api.github.com/users/williewillus","html_url":"https://github.com/williewillus","followers_url":"https://api.github.com/users/williewillus/followers","following_url":"https://api.github.com/users/williewillus/following{/other_user}","gists_url":"https://api.github.com/users/williewillus/gists{/gist_id}","starred_url":"https://api.github.com/users/williewillus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williewillus/subscriptions","organizations_url":"https://api.github.com/users/williewillus/orgs","repos_url":"https://api.github.com/users/williewillus/repos","events_url":"https://api.github.com/users/williewillus/events{/privacy}","received_events_url":"https://api.github.com/users/williewillus/received_events","type":"User","site_admin":false},"repo":{"id":30512581,"name":"ProjectE","full_name":"williewillus/ProjectE","owner":{"login":"williewillus","id":2015032,"avatar_url":"https://avatars.githubusercontent.com/u/2015032?v=3","gravatar_id":"","url":"https://api.github.com/users/williewillus","html_url":"https://github.com/williewillus","followers_url":"https://api.github.com/users/williewillus/followers","following_url":"https://api.github.com/users/williewillus/following{/other_user}","gists_url":"https://api.github.com/users/williewillus/gists{/gist_id}","starred_url":"https://api.github.com/users/williewillus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/williewillus/subscriptions","organizations_url":"https://api.github.com/users/williewillus/orgs","repos_url":"https://api.github.com/users/williewillus/repos","events_url":"https://api.github.com/users/williewillus/events{/privacy}","received_events_url":"https://api.github.com/users/williewillus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/williewillus/ProjectE","description":"Repository for ProjectE, complete rewrite of EE2 for minecraft 1.7.10","fork":true,"url":"https://api.github.com/repos/williewillus/ProjectE","forks_url":"https://api.github.com/repos/williewillus/ProjectE/forks","keys_url":"https://api.github.com/repos/williewillus/ProjectE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/williewillus/ProjectE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/williewillus/ProjectE/teams","hooks_url":"https://api.github.com/repos/williewillus/ProjectE/hooks","issue_events_url":"https://api.github.com/repos/williewillus/ProjectE/issues/events{/number}","events_url":"https://api.github.com/repos/williewillus/ProjectE/events","assignees_url":"https://api.github.com/repos/williewillus/ProjectE/assignees{/user}","branches_url":"https://api.github.com/repos/williewillus/ProjectE/branches{/branch}","tags_url":"https://api.github.com/repos/williewillus/ProjectE/tags","blobs_url":"https://api.github.com/repos/williewillus/ProjectE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/williewillus/ProjectE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/williewillus/ProjectE/git/refs{/sha}","trees_url":"https://api.github.com/repos/williewillus/ProjectE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/williewillus/ProjectE/statuses/{sha}","languages_url":"https://api.github.com/repos/williewillus/ProjectE/languages","stargazers_url":"https://api.github.com/repos/williewillus/ProjectE/stargazers","contributors_url":"https://api.github.com/repos/williewillus/ProjectE/contributors","subscribers_url":"https://api.github.com/repos/williewillus/ProjectE/subscribers","subscription_url":"https://api.github.com/repos/williewillus/ProjectE/subscription","commits_url":"https://api.github.com/repos/williewillus/ProjectE/commits{/sha}","git_commits_url":"https://api.github.com/repos/williewillus/ProjectE/git/commits{/sha}","comments_url":"https://api.github.com/repos/williewillus/ProjectE/comments{/number}","issue_comment_url":"https://api.github.com/repos/williewillus/ProjectE/issues/comments{/number}","contents_url":"https://api.github.com/repos/williewillus/ProjectE/contents/{+path}","compare_url":"https://api.github.com/repos/williewillus/ProjectE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/williewillus/ProjectE/merges","archive_url":"https://api.github.com/repos/williewillus/ProjectE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/williewillus/ProjectE/downloads","issues_url":"https://api.github.com/repos/williewillus/ProjectE/issues{/number}","pulls_url":"https://api.github.com/repos/williewillus/ProjectE/pulls{/number}","milestones_url":"https://api.github.com/repos/williewillus/ProjectE/milestones{/number}","notifications_url":"https://api.github.com/repos/williewillus/ProjectE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/williewillus/ProjectE/labels{/name}","releases_url":"https://api.github.com/repos/williewillus/ProjectE/releases{/id}","created_at":"2015-02-09T01:10:52Z","updated_at":"2015-06-21T06:34:23Z","pushed_at":"2015-08-13T02:27:12Z","git_url":"git://github.com/williewillus/ProjectE.git","ssh_url":"git@github.com:williewillus/ProjectE.git","clone_url":"https://github.com/williewillus/ProjectE.git","svn_url":"https://github.com/williewillus/ProjectE","homepage":null,"size":6540,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"sinkillerj:master","ref":"master","sha":"87b710188a50766c4f9b6c9bdc1ec10b3451c563","user":{"login":"sinkillerj","id":1589514,"avatar_url":"https://avatars.githubusercontent.com/u/1589514?v=3","gravatar_id":"","url":"https://api.github.com/users/sinkillerj","html_url":"https://github.com/sinkillerj","followers_url":"https://api.github.com/users/sinkillerj/followers","following_url":"https://api.github.com/users/sinkillerj/following{/other_user}","gists_url":"https://api.github.com/users/sinkillerj/gists{/gist_id}","starred_url":"https://api.github.com/users/sinkillerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinkillerj/subscriptions","organizations_url":"https://api.github.com/users/sinkillerj/orgs","repos_url":"https://api.github.com/users/sinkillerj/repos","events_url":"https://api.github.com/users/sinkillerj/events{/privacy}","received_events_url":"https://api.github.com/users/sinkillerj/received_events","type":"User","site_admin":false},"repo":{"id":22923251,"name":"ProjectE","full_name":"sinkillerj/ProjectE","owner":{"login":"sinkillerj","id":1589514,"avatar_url":"https://avatars.githubusercontent.com/u/1589514?v=3","gravatar_id":"","url":"https://api.github.com/users/sinkillerj","html_url":"https://github.com/sinkillerj","followers_url":"https://api.github.com/users/sinkillerj/followers","following_url":"https://api.github.com/users/sinkillerj/following{/other_user}","gists_url":"https://api.github.com/users/sinkillerj/gists{/gist_id}","starred_url":"https://api.github.com/users/sinkillerj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinkillerj/subscriptions","organizations_url":"https://api.github.com/users/sinkillerj/orgs","repos_url":"https://api.github.com/users/sinkillerj/repos","events_url":"https://api.github.com/users/sinkillerj/events{/privacy}","received_events_url":"https://api.github.com/users/sinkillerj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sinkillerj/ProjectE","description":"ProjectE. A complete rewrite of EE2 for modern Minecraft versions.","fork":false,"url":"https://api.github.com/repos/sinkillerj/ProjectE","forks_url":"https://api.github.com/repos/sinkillerj/ProjectE/forks","keys_url":"https://api.github.com/repos/sinkillerj/ProjectE/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sinkillerj/ProjectE/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sinkillerj/ProjectE/teams","hooks_url":"https://api.github.com/repos/sinkillerj/ProjectE/hooks","issue_events_url":"https://api.github.com/repos/sinkillerj/ProjectE/issues/events{/number}","events_url":"https://api.github.com/repos/sinkillerj/ProjectE/events","assignees_url":"https://api.github.com/repos/sinkillerj/ProjectE/assignees{/user}","branches_url":"https://api.github.com/repos/sinkillerj/ProjectE/branches{/branch}","tags_url":"https://api.github.com/repos/sinkillerj/ProjectE/tags","blobs_url":"https://api.github.com/repos/sinkillerj/ProjectE/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sinkillerj/ProjectE/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sinkillerj/ProjectE/git/refs{/sha}","trees_url":"https://api.github.com/repos/sinkillerj/ProjectE/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sinkillerj/ProjectE/statuses/{sha}","languages_url":"https://api.github.com/repos/sinkillerj/ProjectE/languages","stargazers_url":"https://api.github.com/repos/sinkillerj/ProjectE/stargazers","contributors_url":"https://api.github.com/repos/sinkillerj/ProjectE/contributors","subscribers_url":"https://api.github.com/repos/sinkillerj/ProjectE/subscribers","subscription_url":"https://api.github.com/repos/sinkillerj/ProjectE/subscription","commits_url":"https://api.github.com/repos/sinkillerj/ProjectE/commits{/sha}","git_commits_url":"https://api.github.com/repos/sinkillerj/ProjectE/git/commits{/sha}","comments_url":"https://api.github.com/repos/sinkillerj/ProjectE/comments{/number}","issue_comment_url":"https://api.github.com/repos/sinkillerj/ProjectE/issues/comments{/number}","contents_url":"https://api.github.com/repos/sinkillerj/ProjectE/contents/{+path}","compare_url":"https://api.github.com/repos/sinkillerj/ProjectE/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sinkillerj/ProjectE/merges","archive_url":"https://api.github.com/repos/sinkillerj/ProjectE/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sinkillerj/ProjectE/downloads","issues_url":"https://api.github.com/repos/sinkillerj/ProjectE/issues{/number}","pulls_url":"https://api.github.com/repos/sinkillerj/ProjectE/pulls{/number}","milestones_url":"https://api.github.com/repos/sinkillerj/ProjectE/milestones{/number}","notifications_url":"https://api.github.com/repos/sinkillerj/ProjectE/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sinkillerj/ProjectE/labels{/name}","releases_url":"https://api.github.com/repos/sinkillerj/ProjectE/releases{/id}","created_at":"2014-08-13T16:46:11Z","updated_at":"2015-08-11T12:39:59Z","pushed_at":"2015-08-12T15:36:38Z","git_url":"git://github.com/sinkillerj/ProjectE.git","ssh_url":"git@github.com:sinkillerj/ProjectE.git","clone_url":"https://github.com/sinkillerj/ProjectE.git","svn_url":"https://github.com/sinkillerj/ProjectE","homepage":"","size":9824,"stargazers_count":136,"watchers_count":136,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":99,"forks":93,"open_issues":99,"watchers":136,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913"},"html":{"href":"https://github.com/sinkillerj/ProjectE/pull/913"},"issue":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/issues/913"},"comments":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/issues/913/comments"},"review_comments":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913/comments"},"review_comment":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/pulls/913/commits"},"statuses":{"href":"https://api.github.com/repos/sinkillerj/ProjectE/statuses/cffbbf46bd1c2c23a78a79f976596a89841fb626"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":209,"deletions":101,"changed_files":24}}