{"action":"created","issue":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/1494","labels_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/1494/comments","events_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/1494/events","html_url":"https://github.com/MightyPirates/OpenComputers/issues/1494","id":111996645,"number":1494,"title":"A new computer case block model","user":{"login":"samdeman22","id":2551718,"avatar_url":"https://avatars.githubusercontent.com/u/2551718?v=3","gravatar_id":"","url":"https://api.github.com/users/samdeman22","html_url":"https://github.com/samdeman22","followers_url":"https://api.github.com/users/samdeman22/followers","following_url":"https://api.github.com/users/samdeman22/following{/other_user}","gists_url":"https://api.github.com/users/samdeman22/gists{/gist_id}","starred_url":"https://api.github.com/users/samdeman22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdeman22/subscriptions","organizations_url":"https://api.github.com/users/samdeman22/orgs","repos_url":"https://api.github.com/users/samdeman22/repos","events_url":"https://api.github.com/users/samdeman22/events{/privacy}","received_events_url":"https://api.github.com/users/samdeman22/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/labels/feature-suggested","name":"feature-suggested","color":"bfe5bf"},{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/labels/open-for-adoption","name":"open-for-adoption","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-18T02:27:40Z","updated_at":"2015-11-16T14:36:20Z","closed_at":null,"body":"I would like to suggest a new computer case model which you can see inside, much like how you get windows on the side panels of computer cases today. When you add components, they are visualised inside the case in 3D (again, similarly to how components are lain out on a modern motherboard).\r\nApart from adding swag visuals to the mod it makes it more satisfying to have made a computer component and see it inside the case; it might also be useful if you have random computers all over the place that you can identify them by how they look inside (to a degree)."},"comment":{"url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/comments/157050402","html_url":"https://github.com/MightyPirates/OpenComputers/issues/1494#issuecomment-157050402","issue_url":"https://api.github.com/repos/MightyPirates/OpenComputers/issues/1494","id":157050402,"user":{"login":"fnuecke","id":514903,"avatar_url":"https://avatars.githubusercontent.com/u/514903?v=3","gravatar_id":"","url":"https://api.github.com/users/fnuecke","html_url":"https://github.com/fnuecke","followers_url":"https://api.github.com/users/fnuecke/followers","following_url":"https://api.github.com/users/fnuecke/following{/other_user}","gists_url":"https://api.github.com/users/fnuecke/gists{/gist_id}","starred_url":"https://api.github.com/users/fnuecke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fnuecke/subscriptions","organizations_url":"https://api.github.com/users/fnuecke/orgs","repos_url":"https://api.github.com/users/fnuecke/repos","events_url":"https://api.github.com/users/fnuecke/events{/privacy}","received_events_url":"https://api.github.com/users/fnuecke/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T14:36:20Z","updated_at":"2015-11-16T14:36:20Z","body":"The inventory of the case needs manual syncing to the clients, since MC only keeps inventory info on clients as soon as a player actually opens that inventory, for example. For some things OC already does this, e.g. the robot to render equipped items and upgrades, as well as in OC 1.6 the server racks.\r\n\r\nOnce that info is there, and gets synced on inventory changes (probably just sending that in markDirty or what it's called should do) you'll need a custom block renderer (example: [rack renderer](https://github.com/MightyPirates/OpenComputers/blob/master-MC1.7.10/src/main/scala/li/cil/oc/client/renderer/block/ServerRack.scala)). I'm not sure how much hackery would be involved to use the textures of the items in the rack (e.g. cards) in the block renderer. IIRC in MC 1.7 items and blocks have a separate texture atlas, in MC 1.8 items and blocks share the same texture atlas, so that part might actually be easier there."}}