Commit graph

56 commits

Author SHA1 Message Date
LordMZTE 97a3dc12a6
chore: format code 2023-01-03 17:47:36 +01:00
Pahimar e056caee88 Added more TRACE level logging to PlayerKnowledgeRegistry
Improved logic in BlacklistRegistry.isLearnable and BlacklistRegistry.isExchangeable to check it the itemstack is a member of an ore dictionary entry which is blacklisted. If it is, it's not learnable/exchange

(cherry picked from commit 7ac01e09a6b37561c6bd2fc34fe1768f682cf0cd)
2021-12-03 23:49:58 -06: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 2046edf3fb Rewrote the Ability system to be what it was really trying to be, a blacklist registry. Also fixed writing the data to a global area, and made it one file per blacklist. Fixes #898 and #991 2016-05-23 17:47:31 -04:00
Pahimar 160a923ef4 Made sure parent directories are always created if needed on save 2016-05-23 09:29:21 -04:00
Pahimar 3290abb23e Death to the old Transmutation Knowledge! Long live Player Knowledge! 2016-05-22 13:21:46 -04:00
Pahimar 1487490bf5 That should do it for player knowledge related API changes. Loads of stuff in the old TransmutationKnowledgeRegistry are now deprecated. 2016-05-21 22:23:21 -04:00
Pahimar c79e76d8c1 More work on the new player knowledge system - getting close 2016-05-21 10:44:51 -04:00
Pahimar b9d8e00f4b Invert some logic that was causing crashes when saving player knowledge to disk 2016-05-21 07:43:14 -04:00
Pahimar 28080229f7 Better protection of parsing values from json 2016-05-20 23:05:57 -04:00
Pahimar c6d02aee9d More work on the new player knowledge system 2016-05-20 22:55:49 -04:00
Pahimar 3e0907fa3e Working on the railroad, I mean the player knowledge system, all the live long day 2016-05-20 15:57:20 -04:00
Pahimar 591a9ab2eb More work on the new player knowledge system 2016-05-19 22:17:31 -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 43860832ff Start work on the new and improved PlayerKnowledge system 2016-05-19 15:55:14 -04:00
Pahimar cf78ff792a Clean up some of the filtering - a lot of unnecessary repeated code removed 2016-05-19 15:17:56 -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 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 e4c6183083 A lot of various things done, including fixing derpy bounding boxes/etc 2015-06-09 23:25:40 -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
cpw 8ec0371ad2 Fix player knowledge saving issue 2015-05-07 23:36:49 -04:00
pahimar d487598aa0 Merge remote-tracking branch 'origin/master' 2015-05-07 16:18:20 -04:00
pahimar 15180e406b Prevent damaged itemstacks from being learnable, and add a tooltip in the Research Station GUI to tell if you already know how to transmute an itemstack 2015-05-07 16:18:12 -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 a46b8db610 Prelim API changes 2015-05-07 13:45:06 -04:00
Pahimar f98760d49b Potentially fixes ComputerCraft related NPE with syncing EMC values on world join, and added a button to the tablet GUI that allows a player to switch the sort order (ascending/descending) 2015-05-04 22:36:39 -04:00
pahimar 301e8b75c7 Broken stuff 2015-04-20 21:16:48 -04:00
pahimar 646e74e329 Yay test cases pass successfully! 2015-04-19 15:01:35 -04:00
pahimar 771c930c28 Working on some improvements to the DynEMC system to make it more reliable (and faster). Also added in a test suite system using a specially crafted json file. More user documentation on how to use this to come in the future 2015-04-13 22:27:11 -04:00
pahimar b98dee6e96 Bunches of stuff 2015-04-09 12:40:19 -04:00
Pahimar 201ecf99db Inventory sync when the search term is updated (client and server) and ensure that only people using the specified tablet process the inventory update packet 2015-04-03 00:39:52 -04:00
pahimar c66dc875b4 Dat big commit of partially working stuff before taking the laptop to PAX East and having no assurances that the code will survive the trip 2015-03-04 23:31:43 -05:00
pahimar 9801cd639a Finish up the work on the new commands, and lots of other improvements/fixes 2015-02-19 22:09:10 -05:00
Pahimar 7afcdf8d9a More work on getting the Alchemical Tome working properly 2015-02-18 10:11:06 -05:00
pahimar 7c07144237 Get the Research Station learning things for players again 2015-02-16 13:09:03 -05:00
Pahimar 76460a75d5 Change up some logging messages for DynamicEV (tells you more what it's doing), and fixed the generation of the abilities files/directories for saving ability related configs to disk 2015-02-13 22:42:28 -05:00
pahimar 9f59f238dd Fix a goof where a lot of ItemStack comparator usage got pointed to the slower displayNameComparator (as opposed to the faster baseComparator) 2015-02-10 00:38:29 -05:00
pahimar 334a92e54c Pretty big whack of stuff. Added a TransmutationKnowledgeRegistryProxy for API access to what players and the template know how to transmute. More robust serialization options for the AbilityRegistry. Added the ability to filter a given set of ItemStacks by their display name (starts with and contains). Added the ability to only load in Abilities from file on initial load of of a world (more control for map makers there) 2015-02-10 00:22:39 -05:00
pahimar e3559098a0 Load and save abilities to disk 2015-02-09 19:08:18 -05:00
pahimar 44f06224cc Merge remote-tracking branch 'origin/master' 2015-02-07 23:13:25 -05:00
pahimar e8e18fede1 Work on serializing/deserializing abilities to disk (cause why not give map makers more power?) 2015-02-07 23:12:25 -05:00
Pahimar dce8ea6af3 Add some NPE protection to saving player data to disk 2015-02-07 13:31:50 -05:00
Pahimar d77ee1bd02 Add some NPE protection to saving player data to disk 2015-02-07 12:59:16 -05:00
Pahimar 32b111d6dc Add some NPE protection to saving player data to disk 2015-02-07 12:17:58 -05:00
Pahimar 444a9d6b06 Rename method names because OCD 2015-02-05 21:20:05 -05:00
Pahimar 292f78ee49 Move the Transmutation Knowledge template file from the playerdata/ directory to the data/ directory (more appropriate to keep non-player data in a non-player data spot) 2015-02-05 20:39:04 -05:00
Pahimar 0d0fe18a9d Whole whackload of stuff. More to come in the morning Vike 2015-02-04 23:48:07 -05:00
pahimar de22edc3eb Re-jigging how modders can set things as being learnable/not learnable, and recoverable/not recoverable 2015-02-02 23:12:08 -05:00
pahimar f77b24278a Lots of stuff in various stages of working 2015-01-31 23:47:45 -05:00
pahimar 8c503ffec7 One more changelog CurseForge test 2015-01-30 23:34:44 -05:00