{"action":"created","issue":{"url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/240","repository_url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit","labels_url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/240/comments","events_url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/240/events","html_url":"https://github.com/boy0001/FastAsyncWorldedit/issues/240","id":171580662,"number":240,"title":"Anvil API - Feedback wanted","user":{"login":"boy0001","id":1491512,"avatar_url":"https://avatars.githubusercontent.com/u/1491512?v=3","gravatar_id":"","url":"https://api.github.com/users/boy0001","html_url":"https://github.com/boy0001","followers_url":"https://api.github.com/users/boy0001/followers","following_url":"https://api.github.com/users/boy0001/following{/other_user}","gists_url":"https://api.github.com/users/boy0001/gists{/gist_id}","starred_url":"https://api.github.com/users/boy0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boy0001/subscriptions","organizations_url":"https://api.github.com/users/boy0001/orgs","repos_url":"https://api.github.com/users/boy0001/repos","events_url":"https://api.github.com/users/boy0001/events{/privacy}","received_events_url":"https://api.github.com/users/boy0001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/labels/[?]%20Question","name":"[?] Question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"boy0001","id":1491512,"avatar_url":"https://avatars.githubusercontent.com/u/1491512?v=3","gravatar_id":"","url":"https://api.github.com/users/boy0001","html_url":"https://github.com/boy0001","followers_url":"https://api.github.com/users/boy0001/followers","following_url":"https://api.github.com/users/boy0001/following{/other_user}","gists_url":"https://api.github.com/users/boy0001/gists{/gist_id}","starred_url":"https://api.github.com/users/boy0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boy0001/subscriptions","organizations_url":"https://api.github.com/users/boy0001/orgs","repos_url":"https://api.github.com/users/boy0001/repos","events_url":"https://api.github.com/users/boy0001/events{/privacy}","received_events_url":"https://api.github.com/users/boy0001/received_events","type":"User","site_admin":false},"assignees":[{"login":"boy0001","id":1491512,"avatar_url":"https://avatars.githubusercontent.com/u/1491512?v=3","gravatar_id":"","url":"https://api.github.com/users/boy0001","html_url":"https://github.com/boy0001","followers_url":"https://api.github.com/users/boy0001/followers","following_url":"https://api.github.com/users/boy0001/following{/other_user}","gists_url":"https://api.github.com/users/boy0001/gists{/gist_id}","starred_url":"https://api.github.com/users/boy0001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boy0001/subscriptions","organizations_url":"https://api.github.com/users/boy0001/orgs","repos_url":"https://api.github.com/users/boy0001/repos","events_url":"https://api.github.com/users/boy0001/events{/privacy}","received_events_url":"https://api.github.com/users/boy0001/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-08-17T06:00:13Z","updated_at":"2016-09-29T06:33:04Z","closed_at":null,"body":"I'm going to be working on a low level framework for manipulating the world files directly. Here's my thoughts so far:\r\n\r\n### MCAChunk(NBTInputStream is)\r\nExtends FaweChunk and implements all methods\r\ndelete():\r\n - Marks this MCAChunk for deletion\r\n\r\nRaw values:\r\n> ids: byte[16][4096]\r\ndata: byte[16][2048]\r\nskylight: byte[16][2048]\r\nblocklight: byte[16][2048]\r\nentities: `Map<BytePair, CompoundTag>`\r\ntiles: `List<CompoundTag>`\r\nbiomes: byte[256]\r\ncompressedSize: int\r\nmodified: boolean\r\ndeleted: boolean\r\n\r\n### MCAFile(File mca): Represents an MCAFile\r\ngetChunks():\r\n - Returns a `List<Integer>` of each chunks offsetId\r\n\r\nforEachChunk(`RunnableVal<Integer, Integer, Integer>` onEach):\r\n - Loops over each saved chunk\r\n - onEach: cx, cz, offsetId\r\n\r\nreadChunk(int cx, int cz):\r\nreadChunk(int offsetId):\r\n - Reads from disk and returns the chunk\r\n\r\nforEachCachedChunk(`RunnableVal<MCAChunk>` onEach):\r\n - Loops over each cached chunk\r\n\r\ngetCachedChunks():\r\n - Returns a `List<MCAChunk>`\r\n\r\ngetCachedChunk(int cx, int cz):\r\n - Returns the cached chunk, or null\r\n\r\ngetChunk(int cx, int cz):\r\n - Returns either a cached copy, decompresses it from disk, or null\r\n\r\nstreamChunk(int cx, int cz, `RunnableVal<NBTStreamer>` addReaders):\r\nstreamChunk(int offsetId, `RunnableVal<NBTStreamer>` addReaders):\r\n - Read parts of the chunk you want (faster, but readonly)\r\n\r\nuncache(int cx, int cz): \r\n - Removes a chunk from cache\r\n\r\nflush():\r\n - Write all modified chunks to disk\r\n - Empties the cache\r\n\r\n# MCAQueue(FaweQueue parent)\r\nFaweQueue implementation using a map of MCAFile\r\n - This queue can then be used for an EditSession, or directly\r\n\r\nMore info:\r\n - http://wiki.vg/Region_Files\r\n - http://minecraft.gamepedia.com/Anvil_file_format"},"comment":{"url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/comments/250382177","html_url":"https://github.com/boy0001/FastAsyncWorldedit/issues/240#issuecomment-250382177","issue_url":"https://api.github.com/repos/boy0001/FastAsyncWorldedit/issues/240","id":250382177,"user":{"login":"cyberpwnn","id":10619135,"avatar_url":"https://avatars.githubusercontent.com/u/10619135?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberpwnn","html_url":"https://github.com/cyberpwnn","followers_url":"https://api.github.com/users/cyberpwnn/followers","following_url":"https://api.github.com/users/cyberpwnn/following{/other_user}","gists_url":"https://api.github.com/users/cyberpwnn/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberpwnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberpwnn/subscriptions","organizations_url":"https://api.github.com/users/cyberpwnn/orgs","repos_url":"https://api.github.com/users/cyberpwnn/repos","events_url":"https://api.github.com/users/cyberpwnn/events{/privacy}","received_events_url":"https://api.github.com/users/cyberpwnn/received_events","type":"User","site_admin":false},"created_at":"2016-09-29T06:33:04Z","updated_at":"2016-09-29T06:33:04Z","body":"Im getting this exception when using MCAWorld\r\nhttp://paste.phantomapi.org/zifahoxeto.js\r\n\r\nI am then initializing it here\r\n\r\n``` java\r\npublic static MCAQueue getMCAQueue(World world)\r\n{\r\n\treturn new MCAWorld(world.getName(), new File(world.getWorldFolder(), \"region\"), true).getQueue();\r\n}\r\n\r\n//Used as\r\nW.getMCAQueue(Bukkit.getWorld(\"world\")\r\n```\r\n"}}
{"actor":{"display_login":"cyberpwnn"}}