{"action":"created","issue":{"url":"https://api.github.com/repos/CoFH/Feedback/issues/759","labels_url":"https://api.github.com/repos/CoFH/Feedback/issues/759/labels{/name}","comments_url":"https://api.github.com/repos/CoFH/Feedback/issues/759/comments","events_url":"https://api.github.com/repos/CoFH/Feedback/issues/759/events","html_url":"https://github.com/CoFH/Feedback/issues/759","id":99112773,"number":759,"title":"Increase Energy Storage from int to long","user":{"login":"AngellusMortis","id":490848,"avatar_url":"https://avatars.githubusercontent.com/u/490848?v=3","gravatar_id":"","url":"https://api.github.com/users/AngellusMortis","html_url":"https://github.com/AngellusMortis","followers_url":"https://api.github.com/users/AngellusMortis/followers","following_url":"https://api.github.com/users/AngellusMortis/following{/other_user}","gists_url":"https://api.github.com/users/AngellusMortis/gists{/gist_id}","starred_url":"https://api.github.com/users/AngellusMortis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngellusMortis/subscriptions","organizations_url":"https://api.github.com/users/AngellusMortis/orgs","repos_url":"https://api.github.com/users/AngellusMortis/repos","events_url":"https://api.github.com/users/AngellusMortis/events{/privacy}","received_events_url":"https://api.github.com/users/AngellusMortis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-08-05T04:15:11Z","updated_at":"2015-08-05T21:23:21Z","closed_at":"2015-08-05T05:47:52Z","body":"Some mods (*cough EnderIO cough Draconic Evolution cough*) that use the RF API have storage blocks that exceed the INT_MAX of ~2.14 billion RF. The mods have cleverly found ways to work with this by setting max transfer rates of INT_MAX, but it makes `getEnergyStored` and `getMaxEnergyStored` inaccurate because they do not return their proper values. \r\n\r\nExample from Draconic Evolution:\r\n\r\n[EnergyPylon](https://github.com/brandon3055/Draconic-Evolution/blob/96be94c7b41de043bde89460feedaac853d729d2/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyPylon.java#L285) (transfer block in DE)\r\n\r\n[EnergyCore](https://github.com/brandon3055/Draconic-Evolution/blob/96be94c7b41de043bde89460feedaac853d729d2/src/main/java/com/brandon3055/draconicevolution/common/tileentities/multiblocktiles/TileEnergyStorageCore.java#L774) (the actually energy storage block)\r\n\r\n\r\nThe Energy Core does not implement the IEnergyStorage, but the Energy Pylon does and just caps the energy stored to INT_MAX. Other mods that read this data are not getting accurate data so it is hard to tell what is inside of these energy storage blocks programmically.\r\n\r\nThe best use case I found for this is in the Computer Craft add-on OpenPeripherals, which allows you to read block data from a block including the `getEnergyStored` and `getMaxEnergyStored` return values. An issue was created on their Github [here](https://github.com/OpenMods/OpenPeripheral/issues/191) even though it is not really something they can fix. \r\n\r\nCannot tag this, but I would definitely consider it an enhancement since it is other mods that are kind of pushing past what the RF-API was designed for."},"comment":{"url":"https://api.github.com/repos/CoFH/Feedback/issues/comments/128153007","html_url":"https://github.com/CoFH/Feedback/issues/759#issuecomment-128153007","issue_url":"https://api.github.com/repos/CoFH/Feedback/issues/759","id":128153007,"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},"created_at":"2015-08-05T21:23:21Z","updated_at":"2015-08-05T21:23:21Z","body":"@SoniEx2 - more terrible workarounds. Design is not about duct tape."}}