{"action":"created","comment":{"url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/comments/30306140","id":30306140,"diff_hunk":"@@ -0,0 +1,49 @@\n+/*\n+ * Copyright 2015 MovingBlocks\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.terasology.context;\n+\n+/**\n+ * Provides classes with the utility objects that belong to the context they are running in.\n+ *\n+ * Use dependency injection or this interface to get at the objects you want to use.\n+ *\n+ *\n+ * From this class there can be multiple instances. For example we have the option of letting a client and server run\n+ * concurrently in one VM, by letting them work with two separate context objects.\n+ *\n+ * This class is intended to replace the CoreRegistry and other static means to get utility objects.\n+ *\n+ * Contexts must be thread save!","path":"engine/src/main/java/org/terasology/context/Context.java","position":29,"original_position":29,"commit_id":"ce61413e2d8adf94f6233bfedcab1bc0f0eb0f33","original_commit_id":"ce61413e2d8adf94f6233bfedcab1bc0f0eb0f33","user":{"login":"flo","id":3511,"avatar_url":"https://avatars.githubusercontent.com/u/3511?v=3","gravatar_id":"","url":"https://api.github.com/users/flo","html_url":"https://github.com/flo","followers_url":"https://api.github.com/users/flo/followers","following_url":"https://api.github.com/users/flo/following{/other_user}","gists_url":"https://api.github.com/users/flo/gists{/gist_id}","starred_url":"https://api.github.com/users/flo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flo/subscriptions","organizations_url":"https://api.github.com/users/flo/orgs","repos_url":"https://api.github.com/users/flo/repos","events_url":"https://api.github.com/users/flo/events{/privacy}","received_events_url":"https://api.github.com/users/flo/received_events","type":"User","site_admin":false},"body":"thanks good catch.","created_at":"2015-05-14T08:48:13Z","updated_at":"2015-05-14T08:48:13Z","html_url":"https://github.com/MovingBlocks/Terasology/pull/1721#discussion_r30306140","pull_request_url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721","_links":{"self":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/comments/30306140"},"html":{"href":"https://github.com/MovingBlocks/Terasology/pull/1721#discussion_r30306140"},"pull_request":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721"}}},"pull_request":{"url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721","id":35079410,"html_url":"https://github.com/MovingBlocks/Terasology/pull/1721","diff_url":"https://github.com/MovingBlocks/Terasology/pull/1721.diff","patch_url":"https://github.com/MovingBlocks/Terasology/pull/1721.patch","issue_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/1721","number":1721,"state":"open","locked":false,"title":"Introduce the concept of a Context to slowly get rid of CoreRegistry.","user":{"login":"flo","id":3511,"avatar_url":"https://avatars.githubusercontent.com/u/3511?v=3","gravatar_id":"","url":"https://api.github.com/users/flo","html_url":"https://github.com/flo","followers_url":"https://api.github.com/users/flo/followers","following_url":"https://api.github.com/users/flo/following{/other_user}","gists_url":"https://api.github.com/users/flo/gists{/gist_id}","starred_url":"https://api.github.com/users/flo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flo/subscriptions","organizations_url":"https://api.github.com/users/flo/orgs","repos_url":"https://api.github.com/users/flo/repos","events_url":"https://api.github.com/users/flo/events{/privacy}","received_events_url":"https://api.github.com/users/flo/received_events","type":"User","site_admin":false},"body":"Reasoning: The core registry is just like static variables and it prevents\r\ncool stuff like having a client and headless server running in the same VM.","created_at":"2015-05-10T08:31:57Z","updated_at":"2015-05-14T08:48:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4cdfcde0073a34d65b3906960fa63e5475c75c2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721/commits","review_comments_url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721/comments","review_comment_url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/1721/comments","statuses_url":"https://api.github.com/repos/MovingBlocks/Terasology/statuses/ce61413e2d8adf94f6233bfedcab1bc0f0eb0f33","head":{"label":"flo:no-static-access-part1","ref":"no-static-access-part1","sha":"ce61413e2d8adf94f6233bfedcab1bc0f0eb0f33","user":{"login":"flo","id":3511,"avatar_url":"https://avatars.githubusercontent.com/u/3511?v=3","gravatar_id":"","url":"https://api.github.com/users/flo","html_url":"https://github.com/flo","followers_url":"https://api.github.com/users/flo/followers","following_url":"https://api.github.com/users/flo/following{/other_user}","gists_url":"https://api.github.com/users/flo/gists{/gist_id}","starred_url":"https://api.github.com/users/flo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flo/subscriptions","organizations_url":"https://api.github.com/users/flo/orgs","repos_url":"https://api.github.com/users/flo/repos","events_url":"https://api.github.com/users/flo/events{/privacy}","received_events_url":"https://api.github.com/users/flo/received_events","type":"User","site_admin":false},"repo":{"id":24473292,"name":"Terasology","full_name":"flo/Terasology","owner":{"login":"flo","id":3511,"avatar_url":"https://avatars.githubusercontent.com/u/3511?v=3","gravatar_id":"","url":"https://api.github.com/users/flo","html_url":"https://github.com/flo","followers_url":"https://api.github.com/users/flo/followers","following_url":"https://api.github.com/users/flo/following{/other_user}","gists_url":"https://api.github.com/users/flo/gists{/gist_id}","starred_url":"https://api.github.com/users/flo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flo/subscriptions","organizations_url":"https://api.github.com/users/flo/orgs","repos_url":"https://api.github.com/users/flo/repos","events_url":"https://api.github.com/users/flo/events{/privacy}","received_events_url":"https://api.github.com/users/flo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/flo/Terasology","description":"Terasology is an open source project started by Benjamin \"begla\" Glatzel to research procedural terrain generation and efficient rendering techniques in Java using the LWJGL. The engine uses a block-based voxel-like approach as seen in Minecraft.  After proving itself as a solid tech demo begla was joined at first by Anton \"small-jeeper\" Kireev and Rasmus \"Cervator\" Praestholm and a full-fledged game concept was born. Our goal is a game that pays ample tribute to Minecraft in initial look and origin, but stakes out its own niche by adopting the NPC-helper and caretaker feel from such games as Dwarf Fortress and Dungeon Keeper, while striving for added depth and sophistication in the foundation systems akin to DF.","fork":true,"url":"https://api.github.com/repos/flo/Terasology","forks_url":"https://api.github.com/repos/flo/Terasology/forks","keys_url":"https://api.github.com/repos/flo/Terasology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/flo/Terasology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/flo/Terasology/teams","hooks_url":"https://api.github.com/repos/flo/Terasology/hooks","issue_events_url":"https://api.github.com/repos/flo/Terasology/issues/events{/number}","events_url":"https://api.github.com/repos/flo/Terasology/events","assignees_url":"https://api.github.com/repos/flo/Terasology/assignees{/user}","branches_url":"https://api.github.com/repos/flo/Terasology/branches{/branch}","tags_url":"https://api.github.com/repos/flo/Terasology/tags","blobs_url":"https://api.github.com/repos/flo/Terasology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/flo/Terasology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/flo/Terasology/git/refs{/sha}","trees_url":"https://api.github.com/repos/flo/Terasology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/flo/Terasology/statuses/{sha}","languages_url":"https://api.github.com/repos/flo/Terasology/languages","stargazers_url":"https://api.github.com/repos/flo/Terasology/stargazers","contributors_url":"https://api.github.com/repos/flo/Terasology/contributors","subscribers_url":"https://api.github.com/repos/flo/Terasology/subscribers","subscription_url":"https://api.github.com/repos/flo/Terasology/subscription","commits_url":"https://api.github.com/repos/flo/Terasology/commits{/sha}","git_commits_url":"https://api.github.com/repos/flo/Terasology/git/commits{/sha}","comments_url":"https://api.github.com/repos/flo/Terasology/comments{/number}","issue_comment_url":"https://api.github.com/repos/flo/Terasology/issues/comments{/number}","contents_url":"https://api.github.com/repos/flo/Terasology/contents/{+path}","compare_url":"https://api.github.com/repos/flo/Terasology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/flo/Terasology/merges","archive_url":"https://api.github.com/repos/flo/Terasology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/flo/Terasology/downloads","issues_url":"https://api.github.com/repos/flo/Terasology/issues{/number}","pulls_url":"https://api.github.com/repos/flo/Terasology/pulls{/number}","milestones_url":"https://api.github.com/repos/flo/Terasology/milestones{/number}","notifications_url":"https://api.github.com/repos/flo/Terasology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/flo/Terasology/labels{/name}","releases_url":"https://api.github.com/repos/flo/Terasology/releases{/id}","created_at":"2014-09-25T20:03:10Z","updated_at":"2014-09-30T21:44:33Z","pushed_at":"2015-05-10T16:55:49Z","git_url":"git://github.com/flo/Terasology.git","ssh_url":"git@github.com:flo/Terasology.git","clone_url":"https://github.com/flo/Terasology.git","svn_url":"https://github.com/flo/Terasology","homepage":"http://terasology.org/","size":199523,"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":"MovingBlocks:develop","ref":"develop","sha":"62f5625c96a636291983faa1edb94d0f87c6ca50","user":{"login":"MovingBlocks","id":1292442,"avatar_url":"https://avatars.githubusercontent.com/u/1292442?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingBlocks","html_url":"https://github.com/MovingBlocks","followers_url":"https://api.github.com/users/MovingBlocks/followers","following_url":"https://api.github.com/users/MovingBlocks/following{/other_user}","gists_url":"https://api.github.com/users/MovingBlocks/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingBlocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingBlocks/subscriptions","organizations_url":"https://api.github.com/users/MovingBlocks/orgs","repos_url":"https://api.github.com/users/MovingBlocks/repos","events_url":"https://api.github.com/users/MovingBlocks/events{/privacy}","received_events_url":"https://api.github.com/users/MovingBlocks/received_events","type":"Organization","site_admin":false},"repo":{"id":1438007,"name":"Terasology","full_name":"MovingBlocks/Terasology","owner":{"login":"MovingBlocks","id":1292442,"avatar_url":"https://avatars.githubusercontent.com/u/1292442?v=3","gravatar_id":"","url":"https://api.github.com/users/MovingBlocks","html_url":"https://github.com/MovingBlocks","followers_url":"https://api.github.com/users/MovingBlocks/followers","following_url":"https://api.github.com/users/MovingBlocks/following{/other_user}","gists_url":"https://api.github.com/users/MovingBlocks/gists{/gist_id}","starred_url":"https://api.github.com/users/MovingBlocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MovingBlocks/subscriptions","organizations_url":"https://api.github.com/users/MovingBlocks/orgs","repos_url":"https://api.github.com/users/MovingBlocks/repos","events_url":"https://api.github.com/users/MovingBlocks/events{/privacy}","received_events_url":"https://api.github.com/users/MovingBlocks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MovingBlocks/Terasology","description":"Terasology is an open source project started by Benjamin \"begla\" Glatzel to research procedural terrain generation and efficient rendering techniques in Java using the LWJGL. The engine uses a block-based voxel-like approach as seen in Minecraft.  After proving itself as a solid tech demo begla was joined at first by Anton \"small-jeeper\" Kireev and Rasmus \"Cervator\" Praestholm and a full-fledged game concept was born. Our goal is a game that pays ample tribute to Minecraft in initial look and origin, but stakes out its own niche by adopting the NPC-helper and caretaker feel from such games as Dwarf Fortress and Dungeon Keeper, while striving for added depth and sophistication in the foundation systems akin to DF.","fork":false,"url":"https://api.github.com/repos/MovingBlocks/Terasology","forks_url":"https://api.github.com/repos/MovingBlocks/Terasology/forks","keys_url":"https://api.github.com/repos/MovingBlocks/Terasology/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MovingBlocks/Terasology/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MovingBlocks/Terasology/teams","hooks_url":"https://api.github.com/repos/MovingBlocks/Terasology/hooks","issue_events_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/events{/number}","events_url":"https://api.github.com/repos/MovingBlocks/Terasology/events","assignees_url":"https://api.github.com/repos/MovingBlocks/Terasology/assignees{/user}","branches_url":"https://api.github.com/repos/MovingBlocks/Terasology/branches{/branch}","tags_url":"https://api.github.com/repos/MovingBlocks/Terasology/tags","blobs_url":"https://api.github.com/repos/MovingBlocks/Terasology/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MovingBlocks/Terasology/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MovingBlocks/Terasology/git/refs{/sha}","trees_url":"https://api.github.com/repos/MovingBlocks/Terasology/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MovingBlocks/Terasology/statuses/{sha}","languages_url":"https://api.github.com/repos/MovingBlocks/Terasology/languages","stargazers_url":"https://api.github.com/repos/MovingBlocks/Terasology/stargazers","contributors_url":"https://api.github.com/repos/MovingBlocks/Terasology/contributors","subscribers_url":"https://api.github.com/repos/MovingBlocks/Terasology/subscribers","subscription_url":"https://api.github.com/repos/MovingBlocks/Terasology/subscription","commits_url":"https://api.github.com/repos/MovingBlocks/Terasology/commits{/sha}","git_commits_url":"https://api.github.com/repos/MovingBlocks/Terasology/git/commits{/sha}","comments_url":"https://api.github.com/repos/MovingBlocks/Terasology/comments{/number}","issue_comment_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues/comments{/number}","contents_url":"https://api.github.com/repos/MovingBlocks/Terasology/contents/{+path}","compare_url":"https://api.github.com/repos/MovingBlocks/Terasology/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MovingBlocks/Terasology/merges","archive_url":"https://api.github.com/repos/MovingBlocks/Terasology/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MovingBlocks/Terasology/downloads","issues_url":"https://api.github.com/repos/MovingBlocks/Terasology/issues{/number}","pulls_url":"https://api.github.com/repos/MovingBlocks/Terasology/pulls{/number}","milestones_url":"https://api.github.com/repos/MovingBlocks/Terasology/milestones{/number}","notifications_url":"https://api.github.com/repos/MovingBlocks/Terasology/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MovingBlocks/Terasology/labels{/name}","releases_url":"https://api.github.com/repos/MovingBlocks/Terasology/releases{/id}","created_at":"2011-03-04T03:49:19Z","updated_at":"2015-05-13T19:07:37Z","pushed_at":"2015-05-11T04:36:31Z","git_url":"git://github.com/MovingBlocks/Terasology.git","ssh_url":"git@github.com:MovingBlocks/Terasology.git","clone_url":"https://github.com/MovingBlocks/Terasology.git","svn_url":"https://github.com/MovingBlocks/Terasology","homepage":"http://terasology.org/","size":282930,"stargazers_count":1042,"watchers_count":1042,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":428,"mirror_url":null,"open_issues_count":269,"forks":428,"open_issues":269,"watchers":1042,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721"},"html":{"href":"https://github.com/MovingBlocks/Terasology/pull/1721"},"issue":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/issues/1721"},"comments":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/issues/1721/comments"},"review_comments":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721/comments"},"review_comment":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/pulls/1721/commits"},"statuses":{"href":"https://api.github.com/repos/MovingBlocks/Terasology/statuses/ce61413e2d8adf94f6233bfedcab1bc0f0eb0f33"}}}}