{"action":"created","comment":{"url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/comments/75370388","id":75370388,"diff_hunk":"@@ -0,0 +1,44 @@\n+/*\n+ * Copyright 2016 FabricMC\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+\n+package net.fabricmc.base;\n+\n+import java.io.File;\n+\n+public class Fabric {\n+\n+    private static File gameDir;\n+    private static File configDir;\n+\n+    public static File getGameDir() {\n+        return gameDir;\n+    }\n+\n+    // INTERNAL: DO NOT USE","path":"src/main/java/net/fabricmc/base/Fabric.java","position":30,"original_position":30,"commit_id":"651e455b3ad64ac46ece482d2f1b894c14a40311","original_commit_id":"651e455b3ad64ac46ece482d2f1b894c14a40311","user":{"login":"asiekierka","id":113514,"avatar_url":"https://avatars.githubusercontent.com/u/113514?v=3","gravatar_id":"","url":"https://api.github.com/users/asiekierka","html_url":"https://github.com/asiekierka","followers_url":"https://api.github.com/users/asiekierka/followers","following_url":"https://api.github.com/users/asiekierka/following{/other_user}","gists_url":"https://api.github.com/users/asiekierka/gists{/gist_id}","starred_url":"https://api.github.com/users/asiekierka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asiekierka/subscriptions","organizations_url":"https://api.github.com/users/asiekierka/orgs","repos_url":"https://api.github.com/users/asiekierka/repos","events_url":"https://api.github.com/users/asiekierka/events{/privacy}","received_events_url":"https://api.github.com/users/asiekierka/received_events","type":"User","site_admin":false},"body":"Couldn't we have a \"public static void initialize()\" that sets a boolean so it crashes if called more than once?","created_at":"2016-08-18T19:10:59Z","updated_at":"2016-08-18T19:10:59Z","html_url":"https://github.com/FabricMC/fabric-base/pull/14#discussion_r75370388","pull_request_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/comments/75370388"},"html":{"href":"https://github.com/FabricMC/fabric-base/pull/14#discussion_r75370388"},"pull_request":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14","id":81858823,"html_url":"https://github.com/FabricMC/fabric-base/pull/14","diff_url":"https://github.com/FabricMC/fabric-base/pull/14.diff","patch_url":"https://github.com/FabricMC/fabric-base/pull/14.patch","issue_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/14","number":14,"state":"open","locked":false,"title":"[WIP] Mod loading","user":{"login":"shadowfacts","id":7091588,"avatar_url":"https://avatars.githubusercontent.com/u/7091588?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowfacts","html_url":"https://github.com/shadowfacts","followers_url":"https://api.github.com/users/shadowfacts/followers","following_url":"https://api.github.com/users/shadowfacts/following{/other_user}","gists_url":"https://api.github.com/users/shadowfacts/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowfacts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowfacts/subscriptions","organizations_url":"https://api.github.com/users/shadowfacts/orgs","repos_url":"https://api.github.com/users/shadowfacts/repos","events_url":"https://api.github.com/users/shadowfacts/events{/privacy}","received_events_url":"https://api.github.com/users/shadowfacts/received_events","type":"User","site_admin":false},"body":"**Do not merge, feedback wanted**\r\n\r\n- Adds a language adapter interface allowing for mod developers to use other languages (Scala, Kotlin) that provide `object` singletons with main mod classes.\r\n- Adds a ModContainer system that holds the mod info, the language adapter instance, and the mod instance.\r\n- Adds a bare-bones test mod to demonstrate the system.\r\n- Fixes deserializing `mod.json`s as previously there wasn't a `Version` deserializer.","created_at":"2016-08-18T17:50:06Z","updated_at":"2016-08-18T19:10:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9bcf98b07fa0f52c399f11cfcf4370bfd1b5a0ee","assignee":{"login":"shadowfacts","id":7091588,"avatar_url":"https://avatars.githubusercontent.com/u/7091588?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowfacts","html_url":"https://github.com/shadowfacts","followers_url":"https://api.github.com/users/shadowfacts/followers","following_url":"https://api.github.com/users/shadowfacts/following{/other_user}","gists_url":"https://api.github.com/users/shadowfacts/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowfacts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowfacts/subscriptions","organizations_url":"https://api.github.com/users/shadowfacts/orgs","repos_url":"https://api.github.com/users/shadowfacts/repos","events_url":"https://api.github.com/users/shadowfacts/events{/privacy}","received_events_url":"https://api.github.com/users/shadowfacts/received_events","type":"User","site_admin":false},"assignees":[{"login":"shadowfacts","id":7091588,"avatar_url":"https://avatars.githubusercontent.com/u/7091588?v=3","gravatar_id":"","url":"https://api.github.com/users/shadowfacts","html_url":"https://github.com/shadowfacts","followers_url":"https://api.github.com/users/shadowfacts/followers","following_url":"https://api.github.com/users/shadowfacts/following{/other_user}","gists_url":"https://api.github.com/users/shadowfacts/gists{/gist_id}","starred_url":"https://api.github.com/users/shadowfacts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadowfacts/subscriptions","organizations_url":"https://api.github.com/users/shadowfacts/orgs","repos_url":"https://api.github.com/users/shadowfacts/repos","events_url":"https://api.github.com/users/shadowfacts/events{/privacy}","received_events_url":"https://api.github.com/users/shadowfacts/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14/commits","review_comments_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14/comments","review_comment_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/14/comments","statuses_url":"https://api.github.com/repos/FabricMC/fabric-base/statuses/651e455b3ad64ac46ece482d2f1b894c14a40311","head":{"label":"FabricMC:mods","ref":"mods","sha":"651e455b3ad64ac46ece482d2f1b894c14a40311","user":{"login":"FabricMC","id":21025855,"avatar_url":"https://avatars.githubusercontent.com/u/21025855?v=3","gravatar_id":"","url":"https://api.github.com/users/FabricMC","html_url":"https://github.com/FabricMC","followers_url":"https://api.github.com/users/FabricMC/followers","following_url":"https://api.github.com/users/FabricMC/following{/other_user}","gists_url":"https://api.github.com/users/FabricMC/gists{/gist_id}","starred_url":"https://api.github.com/users/FabricMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabricMC/subscriptions","organizations_url":"https://api.github.com/users/FabricMC/orgs","repos_url":"https://api.github.com/users/FabricMC/repos","events_url":"https://api.github.com/users/FabricMC/events{/privacy}","received_events_url":"https://api.github.com/users/FabricMC/received_events","type":"Organization","site_admin":false},"repo":{"id":65730412,"name":"fabric-base","full_name":"FabricMC/fabric-base","owner":{"login":"FabricMC","id":21025855,"avatar_url":"https://avatars.githubusercontent.com/u/21025855?v=3","gravatar_id":"","url":"https://api.github.com/users/FabricMC","html_url":"https://github.com/FabricMC","followers_url":"https://api.github.com/users/FabricMC/followers","following_url":"https://api.github.com/users/FabricMC/following{/other_user}","gists_url":"https://api.github.com/users/FabricMC/gists{/gist_id}","starred_url":"https://api.github.com/users/FabricMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabricMC/subscriptions","organizations_url":"https://api.github.com/users/FabricMC/orgs","repos_url":"https://api.github.com/users/FabricMC/repos","events_url":"https://api.github.com/users/FabricMC/events{/privacy}","received_events_url":"https://api.github.com/users/FabricMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FabricMC/fabric-base","description":"Base API module for Fabric","fork":false,"url":"https://api.github.com/repos/FabricMC/fabric-base","forks_url":"https://api.github.com/repos/FabricMC/fabric-base/forks","keys_url":"https://api.github.com/repos/FabricMC/fabric-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FabricMC/fabric-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FabricMC/fabric-base/teams","hooks_url":"https://api.github.com/repos/FabricMC/fabric-base/hooks","issue_events_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/events{/number}","events_url":"https://api.github.com/repos/FabricMC/fabric-base/events","assignees_url":"https://api.github.com/repos/FabricMC/fabric-base/assignees{/user}","branches_url":"https://api.github.com/repos/FabricMC/fabric-base/branches{/branch}","tags_url":"https://api.github.com/repos/FabricMC/fabric-base/tags","blobs_url":"https://api.github.com/repos/FabricMC/fabric-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FabricMC/fabric-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FabricMC/fabric-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/FabricMC/fabric-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FabricMC/fabric-base/statuses/{sha}","languages_url":"https://api.github.com/repos/FabricMC/fabric-base/languages","stargazers_url":"https://api.github.com/repos/FabricMC/fabric-base/stargazers","contributors_url":"https://api.github.com/repos/FabricMC/fabric-base/contributors","subscribers_url":"https://api.github.com/repos/FabricMC/fabric-base/subscribers","subscription_url":"https://api.github.com/repos/FabricMC/fabric-base/subscription","commits_url":"https://api.github.com/repos/FabricMC/fabric-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/FabricMC/fabric-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/FabricMC/fabric-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/FabricMC/fabric-base/contents/{+path}","compare_url":"https://api.github.com/repos/FabricMC/fabric-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FabricMC/fabric-base/merges","archive_url":"https://api.github.com/repos/FabricMC/fabric-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FabricMC/fabric-base/downloads","issues_url":"https://api.github.com/repos/FabricMC/fabric-base/issues{/number}","pulls_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls{/number}","milestones_url":"https://api.github.com/repos/FabricMC/fabric-base/milestones{/number}","notifications_url":"https://api.github.com/repos/FabricMC/fabric-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FabricMC/fabric-base/labels{/name}","releases_url":"https://api.github.com/repos/FabricMC/fabric-base/releases{/id}","deployments_url":"https://api.github.com/repos/FabricMC/fabric-base/deployments","created_at":"2016-08-15T12:24:53Z","updated_at":"2016-08-18T07:48:21Z","pushed_at":"2016-08-18T18:09:49Z","git_url":"git://github.com/FabricMC/fabric-base.git","ssh_url":"git@github.com:FabricMC/fabric-base.git","clone_url":"https://github.com/FabricMC/fabric-base.git","svn_url":"https://github.com/FabricMC/fabric-base","homepage":"","size":144,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"FabricMC:master","ref":"master","sha":"ce5722482713162653d0238efe51a0258b0f6989","user":{"login":"FabricMC","id":21025855,"avatar_url":"https://avatars.githubusercontent.com/u/21025855?v=3","gravatar_id":"","url":"https://api.github.com/users/FabricMC","html_url":"https://github.com/FabricMC","followers_url":"https://api.github.com/users/FabricMC/followers","following_url":"https://api.github.com/users/FabricMC/following{/other_user}","gists_url":"https://api.github.com/users/FabricMC/gists{/gist_id}","starred_url":"https://api.github.com/users/FabricMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabricMC/subscriptions","organizations_url":"https://api.github.com/users/FabricMC/orgs","repos_url":"https://api.github.com/users/FabricMC/repos","events_url":"https://api.github.com/users/FabricMC/events{/privacy}","received_events_url":"https://api.github.com/users/FabricMC/received_events","type":"Organization","site_admin":false},"repo":{"id":65730412,"name":"fabric-base","full_name":"FabricMC/fabric-base","owner":{"login":"FabricMC","id":21025855,"avatar_url":"https://avatars.githubusercontent.com/u/21025855?v=3","gravatar_id":"","url":"https://api.github.com/users/FabricMC","html_url":"https://github.com/FabricMC","followers_url":"https://api.github.com/users/FabricMC/followers","following_url":"https://api.github.com/users/FabricMC/following{/other_user}","gists_url":"https://api.github.com/users/FabricMC/gists{/gist_id}","starred_url":"https://api.github.com/users/FabricMC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FabricMC/subscriptions","organizations_url":"https://api.github.com/users/FabricMC/orgs","repos_url":"https://api.github.com/users/FabricMC/repos","events_url":"https://api.github.com/users/FabricMC/events{/privacy}","received_events_url":"https://api.github.com/users/FabricMC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FabricMC/fabric-base","description":"Base API module for Fabric","fork":false,"url":"https://api.github.com/repos/FabricMC/fabric-base","forks_url":"https://api.github.com/repos/FabricMC/fabric-base/forks","keys_url":"https://api.github.com/repos/FabricMC/fabric-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FabricMC/fabric-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FabricMC/fabric-base/teams","hooks_url":"https://api.github.com/repos/FabricMC/fabric-base/hooks","issue_events_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/events{/number}","events_url":"https://api.github.com/repos/FabricMC/fabric-base/events","assignees_url":"https://api.github.com/repos/FabricMC/fabric-base/assignees{/user}","branches_url":"https://api.github.com/repos/FabricMC/fabric-base/branches{/branch}","tags_url":"https://api.github.com/repos/FabricMC/fabric-base/tags","blobs_url":"https://api.github.com/repos/FabricMC/fabric-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FabricMC/fabric-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FabricMC/fabric-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/FabricMC/fabric-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FabricMC/fabric-base/statuses/{sha}","languages_url":"https://api.github.com/repos/FabricMC/fabric-base/languages","stargazers_url":"https://api.github.com/repos/FabricMC/fabric-base/stargazers","contributors_url":"https://api.github.com/repos/FabricMC/fabric-base/contributors","subscribers_url":"https://api.github.com/repos/FabricMC/fabric-base/subscribers","subscription_url":"https://api.github.com/repos/FabricMC/fabric-base/subscription","commits_url":"https://api.github.com/repos/FabricMC/fabric-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/FabricMC/fabric-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/FabricMC/fabric-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/FabricMC/fabric-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/FabricMC/fabric-base/contents/{+path}","compare_url":"https://api.github.com/repos/FabricMC/fabric-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FabricMC/fabric-base/merges","archive_url":"https://api.github.com/repos/FabricMC/fabric-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FabricMC/fabric-base/downloads","issues_url":"https://api.github.com/repos/FabricMC/fabric-base/issues{/number}","pulls_url":"https://api.github.com/repos/FabricMC/fabric-base/pulls{/number}","milestones_url":"https://api.github.com/repos/FabricMC/fabric-base/milestones{/number}","notifications_url":"https://api.github.com/repos/FabricMC/fabric-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FabricMC/fabric-base/labels{/name}","releases_url":"https://api.github.com/repos/FabricMC/fabric-base/releases{/id}","deployments_url":"https://api.github.com/repos/FabricMC/fabric-base/deployments","created_at":"2016-08-15T12:24:53Z","updated_at":"2016-08-18T07:48:21Z","pushed_at":"2016-08-18T18:09:49Z","git_url":"git://github.com/FabricMC/fabric-base.git","ssh_url":"git@github.com:FabricMC/fabric-base.git","clone_url":"https://github.com/FabricMC/fabric-base.git","svn_url":"https://github.com/FabricMC/fabric-base","homepage":"","size":144,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14"},"html":{"href":"https://github.com/FabricMC/fabric-base/pull/14"},"issue":{"href":"https://api.github.com/repos/FabricMC/fabric-base/issues/14"},"comments":{"href":"https://api.github.com/repos/FabricMC/fabric-base/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FabricMC/fabric-base/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/FabricMC/fabric-base/statuses/651e455b3ad64ac46ece482d2f1b894c14a40311"}}}}
{"actor":{"display_login":"asiekierka"}}