Commit graph

113 commits

Author SHA1 Message Date
LordMZTE 97a3dc12a6
chore: format code 2023-01-03 17:47:36 +01:00
Timo Ley a56eba3482 feat: use ProjectE EMC registry if installed 2022-12-02 12:36:58 +01:00
Pahimar adc3a79490 Centralize the energy value decimal formatter, change EnergyValue.toString to use the formatter, and fix two mistakes in wrapping objects where the object being wrapped is modified rather than the copy of the object 2016-05-28 14:57:10 -04:00
Pahimar c36adabdee Reduce the number of calls to getEnergyValueForStack 2016-05-28 14:55:57 -04:00
Pahimar c3c6724fea Fixes #1060 2016-05-27 22:37:05 -04:00
Pahimar 437470f9e7 Initialize the Blacklist Registry in Init
Rename ItemHelper to ItemStackUtils
Change the way OreStack identifies an OreStack from a list of itemstacks. Resolves #923
Added some more test cases to VanillaTestSuite
2016-05-27 16:03:14 -04:00
Pahimar 80afa0e95c Mark OreStack and WrappedStack final, and clean up some of the code in WrappedStack 2016-05-27 08:41:07 -04:00
Pahimar 79bf272f28 Fix a rather insidious bug in the wrapped stack comparator that was causing incorrect energy values to be computed 2016-05-26 16:04:04 -04:00
Pahimar 997e981f3e Added more detail into the log message on HOW EE3 determined the value for an object 2016-05-26 16:03:12 -04:00
Pahimar f41b0279a6 Added some more NPE protection to the ID based ItemStack comparator
Added back in the small and medium sized Alchemical Chest aludel recipes
Added a recipe to make a chalk block from 4 pieces of chalk
Created an EE test suite to test EE specific energy values
Re-registered several EE items
Removed a duplicate Gson type adapter registration
Changed the ItemStackSerializer to return JsonNull in the event that there is no registered name for the item (the item would never deserialize as it wouldn't have a name to lookup)
Changed the EnergyValueMapSerializer to allow serializing of null energy values (as JsonNull). Used for energy value testing.
2016-05-26 12:02:37 -04:00
Pahimar 9113460a3b Fix a bug in computing energy values where it would not attempt to load in the values stored in the pre/post energy value jsons before doing the calculation 2016-05-25 13:25:52 -04:00
Pahimar 85f8d4bfa8 Simplify the energy value test suite and remove more deprecated classes 2016-05-25 11:01:07 -04:00
Pahimar 30c0eb46b7 Fix a possible NPE in the FluidStack comparator
Post calculation energy values set by command now send the new energy value mapping to all currently logged in players
Added methods for devs to see what items are currently blacklisted in the blacklist registry proxy
Added methods for devs to see what energy values are currently assigned in the energy value registry proxy
BlacklistRegistry contents are now synchronized with players when they log into a server, enabling players to play on different servers with different blacklist configurations without needing to update their own configs
Fixed issue in synching of all energy values where the incorrect map was used to synch against on the client side
2016-05-24 23:12:49 -04:00
Pahimar 5f570fc576 Better Singleton implementation of RecipeRegistry, and fix up the getStacksInRange to be more flexible about bounds 2016-05-20 13:56:53 -04:00
Pahimar 429a0fc51b Make some changes to comparators, switch the recipe registry to a TreeMultimap (from HashMultimap), and dump WrappedStack's hashCode as we are no longer using HashMaps/etc (and it wasn't a great implementation anyways) 2016-05-19 21:10:55 -04:00
Pahimar b0544a00ac Clean up some ItemStack copying and fix incorrect stack size in log message 2016-05-19 15:54:59 -04:00
Pahimar 715f7b6a2e Still working on clearing out some cobwebs 2016-05-18 20:54:04 -04:00
Pahimar 2569e1db9a Death to the old energy value registry - long live the new one! 2016-05-18 13:53:13 -04:00
Pahimar 209c18da21 Getting close to the new EnergyValueRegistry implementation 2016-05-17 22:09:41 -04:00
Pahimar c9e2cb4f0c Small changes, big thoughts 2016-05-17 15:59:46 -04:00
Pahimar 06b4801d55 Mama said save my work. I'm gonna save my work! 2016-05-16 22:22:12 -04:00
Pahimar 926ab181da Mama said save my work. I'm gonna save my work! 2016-05-16 22:02:23 -04:00
Pahimar dfd674fce7 Writing down some algorithms for later analysis 2016-05-16 15:28:23 -04:00
Pahimar 63c22f9255 Save often so you don't lose your work! 2016-05-16 15:06:40 -04:00
Pahimar 7efb66ec7f Fixing up DynEMC calculations. Sorely needed, and still a work in progress 2016-05-15 10:31:10 -04:00
pahimar 22c8dee145 Blarg 2016-05-14 22:11:46 -04:00
Pahimar d5d03c61f6 About ready to port the DynEMC algo to the new EnergyValueRegistry class 2016-05-14 14:31:45 -04:00
Pahimar a8fa17603a Documenting stuff so I don't forget what things do 2016-05-13 23:49:12 -04:00
Pahimar fdfbe1232f Documenting stuff so I don't forget what things do 2016-05-13 23:27:16 -04:00
Pahimar c8404fd6ca More serialization work, looking a lot cleaner than before but definitely still some improvements possible 2016-05-13 22:28:10 -04:00
Pahimar 7833ab87ff Work on "better" json serialization of data objects 2016-05-12 21:46:56 -04:00
Pahimar 870bea043c Work on "better" json serialization of data objects 2016-05-12 21:03:35 -04:00
Pahimar 31b9d45dfe More serialization work, looking a lot cleaner than before but definitely still some improvements possible 2016-05-12 16:02:01 -04:00
Pahimar 21e1db1468 More serialization work, looking a lot cleaner than before but definitely still some improvements possible 2016-05-12 15:25:30 -04:00
Pahimar 3c28db961c Work on "better" json serialization of data objects 2016-05-11 22:56:39 -04:00
Pahimar 3a29be6d9a Emagherd work on the 1.7.10 version! 2016-05-11 16:00:03 -04:00
Pahimar 35841c20ae Lots more Marker usage, for much better logging options (making my dev life so so so much easier) 2015-11-19 15:24:40 -05:00
pahimar b59fe4f64b Didn't even think to deprecated Enum entries - doh 2015-06-10 07:47:22 -04:00
Pahimar e4c6183083 A lot of various things done, including fixing derpy bounding boxes/etc 2015-06-09 23:25:40 -04:00
pahimar a48196b580 Switch away from NBT for WrappedStack and setting values 2015-05-28 10:56:49 -04:00
pahimar a317d47b3b Added in some basic events to the API (only the knowledge ones fire right now). These events are cancellable, and fire just before someone learns/forgets something. Cancelling the event will stop the change from happening. Also updated Waila and removed the need for CCC/CCL in mods/. 2015-05-21 18:41:44 -04:00
pahimar 438f5121b5 Fixes #827 2015-05-08 08:14:49 -04:00
Pahimar 61ebb7d15f Setting up some accountability in who does what with the various systems (the API now logs what mod does what when for most of the major systems). Enable TRACE level logging to see 2015-05-07 15:11:23 -04:00
Pahimar a653c47a72 Set API version to a build property, and add in some prelim logging of what mods set what values when in the energy value registry 2015-05-07 14:47:54 -04:00
pahimar a46b8db610 Prelim API changes 2015-05-07 13:45:06 -04:00
pahimar 6e3014a371 In progress 2015-05-04 21:08:06 -04:00
pahimar d1621fbf82 Increment the API version, switch EnergyValue to only accept a float (over Number, small performance increase), and better protection of learning Ores 2015-05-04 08:18:15 -04:00
pahimar eec200f133 Should fix problems with FluidStacks in later Forge versions. Also prevents hoppers from putting too many items into the input slot of the Research Station 2015-05-03 11:48:18 -04:00
pahimar eb2b16eec7 Hopefully fixes Gson related crashes with FluidStacks 2015-05-02 21:14:44 -04:00
pahimar 74bb716395 Getting close now 2015-05-02 19:23:35 -04:00