Commit Graph
64 Commits
Author SHA1 Message Date
pupnewfster d6b27e95a2 Start removing need for keeping track of guiWidth and guiHeight, as they are equal to guiLeft and guiTop 2019-07-08 11:47:36 -04:00
pupnewfster a7b29c209f Deduplicate a bunch of code pertaining to drawing the background layer 2019-07-08 11:47:06 -04:00
pupnewfster 710348a61b Helper methods for drawTexturedModalRect to make code easier to read 2019-07-08 11:47:04 -04:00
pupnewfster adf2741aef For color only things manually handle resetting color to reduce GC from advanced helper 2019-07-08 11:46:21 -04:00
pupnewfster e3fbf55d34 Inline getBlocksTexture 2019-07-08 11:46:20 -04:00
pupnewfster cc2b6ee50f Start transitioning some of the color calls to MekanismRenderHelper 2019-07-08 11:45:17 -04:00
pupnewfster 598538a256 Remove some unneeded resetColors 2019-07-08 11:45:15 -04:00
pupnewfster de1bd30f38 Replace GL11 with GlStateManager, good bit of testing still needed 2019-07-08 11:45:10 -04:00
Richard Freimer 4dd1e81c27 Use sendToAllTracking for update packets (#5496)
* Don't check Y height for sending update packets. Seems to fix compat with cubic chunks #5262

* First pass transitioning from using sendToReceivers to using built in forge stuff

* Make code cleaner to read with helper methods

* Fix accidental extra code from a local branch issue I had

* Further improve readability

* Rename method

* shortcut if player not in same dimension & use EMP.server for the reference
2019-06-08 16:51:37 +08:00
Richard Freimer 0d4b50908f Formatting and code readability cleanup (#5467)
* First pass reformatting code to be more readable (common still not done)

* Replace google common collect calls with Java calls where possible

* Remove a bunch of unnecessary parenthesis leaving clarifying ones

* Add some missing @Nonnull annotations

* Fix checking wrong type

* Remove unnecessary continue/return statements and simplify comparision check

* Pass exception instead of directly printing stack trace

* Work on cleaning up common, through config so far

* Work on cleaning up common, through integration so far

* Work on cleaning up common, through network so far

* Work on cleaning up common, through tier so far

* Remove empty constructors that get created by default anyways

* Work on cleaning up common, through transmitters so far

* Work on cleaning up common, through utils so far

* Finish cleaning up spacing for common
2019-05-11 14:13:24 -04:00
Xander 0dba7cb584 use getters & setters for InfuseStorage (#5416)
* use getters & setters for InfuseStorage to prevent type/amount discrepancies

* Fix a few checks when reading from network/NBT

* Fix some spacing I screwed up by accident

* fix metallurgic infuser gui texture for dark gauge
2019-04-20 13:38:41 +08:00
Richard Freimer 9d98ef575d Port config rewrite (#5378)
Port Config system, Remove some unused code, Refactored various Tier enums out into their own package
2019-04-11 07:18:59 +08:00
pupnewfster 21017efc68 Don't reference main class from API package
https://github.com/mekanism-mod/Mekanism/commit/7c50d1e7cc3dd915979304b46e77a36068ac457d
2019-03-21 10:53:28 -04:00
Richard Freimer cd5fe2040b Gui cleanup (#74)
* Update dependencies for dev environment to have latest versions
* Fix depreated method usage for JEI
* Add Deprecated annotation to methods overriding a deprecated method
* Fix various Deprecated method calls
* Slightly clean up gui code based on IntelliJ inspections
* Remove some unused variables/calculations from the gui code
* Remove some unused variables/calculations from the generator gui code
* Create a bit of hierarchy for Gui's that keep track of TileEntities
* Cleanup Gui Element having majority of variables as public
* Cleanup some duplicate math
* Store tile entity type in a less duplicated manner
* Cleanup Gui ResourceLocation handling. Makes it easier to read the code
* Switch adding to a method
* Switch remaining GUI variables to private/protected
* Partially cleanup Gui Filter code
* Cleanup some of the Chemical Gui Code
* Fix missing a few files in last commit
* Improve handling of Tile Entities in GUIs
2019-03-19 16:10:57 -06:00
temp1011 227e581bb9 Remove dead code (#34)
* delete unused class
* delete reflectionUtils
* remove debugging util class
* remove listUtils
* unused imports and labels
* fix inlining creating an unnecessary array
2019-03-14 12:51:48 -06:00
pupnewfster b5240bd1b6 Fix gas color rendering in guis 2019-03-12 11:36:52 -06:00
Dave Smith e0b7ea62a4 The Great Reformat; moving to google-java-style w/ 4 space indent and 120 column line wrap 2019-03-09 22:47:13 -07:00
Dave Smith c78ae6dd1d Fix #15; completely overhaul the sound system to mirror Minecraft usage 2019-03-06 13:53:59 -07:00
Xander Victory 36ad9e7f69 refactor one shot TileNetworkList creation to use helper method 2017-11-08 15:16:09 +08:00
Xander Victory 2411a1be4d change ArrayList<Object> to a non null list implementation for network data 2017-11-08 15:08:51 +08:00
Joseph C. Sible 6cafac7166 Make combining factories work again 2017-10-02 21:19:00 -04:00
Tom Elfring 34e81bb65d Remove ~350 unsave casts 2017-08-05 19:48:12 +02:00
Tom Elfring babbe59cab Cleanup
Removed unused imports
Add/remove all methods used for arrays
Removed manual array copy
2017-08-05 18:12:45 +02:00
Tom Elfring b72d6efab3 Java 7 and 8 cleanup
Diamond operator <>
Lambdas and method references
2017-08-05 17:50:38 +02:00
Tom Elfring df68b1e36a Merge remote-tracking branch 'upstream/1.11' into 1.12_firstpass 2017-07-23 13:56:41 +02:00
Tom Elfring f6c126af44 Add max energy to tooltips 2017-07-17 20:27:05 +02:00
Tom Elfring a13ce7910d Update mappings to 20170616 2017-06-16 20:26:39 +02:00
aidancbrady c9cbb405d4 More API fixes 2017-04-13 16:15:26 -04:00
aidancbrady 6eb8e59f3c Fix more ItemStack issues 2017-04-03 20:12:02 -04:00
aidancbrady 6a42eb64e3 Update to 1.11.2. Untested, still using outdated MCMP 2017-03-25 20:35:26 -04:00
aidancbrady a89b8f666c <200 errors. All I have left is a bit of rendering work and the new "off hand" stuff 2016-05-25 17:30:22 -04:00
aidancbrady 374cc57515 Use new GlStateManager methods, got armor models to render (though the transformations seriously need to be updated) 2016-05-10 22:24:37 -04:00
Ben Spiers 0cb18773aa Merge branch 'development' into 1.8.9 2016-04-25 16:08:06 +01:00
aidancbrady f904c8b80c Start integrating security into all machinery. This is a very rough implementation, there's gonna be a lot of balance and corrections to make before release 2016-03-21 16:53:29 -04:00
Ben Spiers 84336ec4d1 Merge branch 'development' into 1.8.9
Huge merge with 202 conflicts, hopefully not *too* broken.
2016-03-18 04:24:19 +00:00
aidancbrady 97eeeb5ed3 Better Factory energy usage display, added new reactor LUA commands 2016-03-17 09:28:45 -04:00
aidancbrady 87438dcc7f Boiler work, added heat info tab, worked on polishing heat interactions among machines 2016-02-27 13:32:48 -05:00
Ben Spiers ac39b6fabe Merge branch 'v9' into 1.8.9 2016-02-08 14:55:27 +00:00
Ben Spiers bc024b851f GUIs are back! 2016-02-02 00:16:22 +00:00
Ben Spiers 25d0b7441b Merge branch 'v9' into 1.8.9
Forgot to complete the merge so some weird stuff might have ended up in the patch. Oops.
2016-02-01 23:40:35 +00:00
aidancbrady 56d3a68199 Added energy tab to more machines 2016-02-01 14:57:58 -07:00
aidancbrady 5aaea55900 Infusing Factories. They're finally here 2016-01-29 21:13:05 -07:00
aidancbrady 88cfee2ab2 Changed Metallurgic Infuser infuse system to use icons for textures 2016-01-29 17:47:41 -07:00
Ben Spiers dedc84605f getInventoryName() -> getName() 2016-01-23 14:24:42 +00:00
Ben Spiers 9b8d9d92d6 Start update to 1.8.9
Fix all references to cpw.mods.fml namespace
2016-01-14 19:22:48 +00:00
aidancbrady 7f21516841 Fixed factory tab lighting 2016-01-13 23:15:58 -05:00
aidancbrady 9ffc1bdff3 Localization fixes, part 1 2015-05-10 19:04:42 -04:00
Aidan C. Brady c85bdcd8ab Entity Detection mode for Laser Amplifier 2015-03-30 20:18:08 -04:00
Aidan C. Brady 2d727b56ca Fixed some naming - factories now display their complete names 2015-03-26 10:17:06 -04:00
Aidan C. Brady e47f6032c1 Localization fixes 2015-03-24 11:39:25 -04:00