Commit Graph
235 Commits
Author SHA1 Message Date
alexbegt a81f47c074 Fix more errors regarding GUI stuff. 2019-04-25 20:39:48 -04:00
alexbegt aaed92248c Fix name conflicts inside of the JEI plugin. 2019-04-25 20:07:09 -04:00
alexbegt d81c755b84 Fix the JEI plugin. 2019-04-25 20:05:06 -04:00
alexbegt de4423f18b More work on updating Mantle to 1.13.2.
Pulsar now functions!
2019-04-24 22:39:28 -04:00
KnightMiner e65a173890 Allow isPulseLoaded to check if pulses from other mods are loaded
Also adds a static isPulseLoaded method so you can check if a pulse is loaded without registering a pulse manager
If you call ModuleFileRepository with no pulse manager, it now uses the global check for pulse loaded
2019-04-22 10:54:27 -05:00
Arthur Uzulin 3abd11cc8a Fixed next page button miscalculating total page count 2019-03-23 02:02:40 +11:00
Arthur Uzulin 840408446d Fixed last page not always rendering 2019-03-23 01:55:06 +11:00
Arthur Uzulin 27a25c1be4 Added scroll wheel support for mantle books 2019-03-23 01:26:56 +11:00
KnightMiner 5b48aac8c8 Add module file repository to only load a section if a module is enabled 2019-03-21 19:45:36 -05:00
KnightMiner 981bf8042c Don't mark dirty when reading from NBT 2019-03-15 14:03:17 -05:00
KnightMiner 458655ada2 Ensure inventories and multiblock servants mark dirty when contents change
Using a new method markDirtyFast as the vanilla method also does a ton of block updates
2019-03-15 12:26:32 -05:00
KnightMiner 3ac6614235 Merge remote-tracking branch 'SlimeKnights/master' into 1.12 2019-03-15 11:47:38 -05:00
Sam McCreery 2a0b45038b Fix health bar to work with Forge left_height (#115)
Previous the value was hard-coded, causing problems with mods which render bars
before the health bar (closes #114)
2019-02-09 17:54:41 +01:00
KnightMiner 69a1c80546 Use the given state from getActualState instead of fetching it from the world again (SlimeKnights/TinkersConstruct#3497) 2019-01-03 00:02:34 -06:00
Tamaized a262e27b7c Fixed half hearts not bouncing during regen (#113)
* fixed half heart regen bounce

* fix spacing

* use a helper method
2018-11-16 18:57:42 +01:00
Bernhard Bonigl 84a277f18e Fix crash when render view is not on player #111 2018-10-21 18:32:03 +02:00
Arthur Uzulin 242ffd9f5e [Books] Added checks for language manager presence in light of most recent issues 2018-08-17 03:26:26 +10:00
Arthur Uzulin 7bcd1043ba [Books] Made the book errors more verbose
- Added short stack trace to error page
- Added stack trace print where it was missing
- Made text data renderer check for null text data
2018-08-17 02:29:51 +10:00
Arthur Uzulin 35e592fc1c [Books] Reverted add/renaming tooltip layer to preserve backwards compatibility 2018-07-28 21:01:14 +10:00
Arthur Uzulin 05e219ac85 [Books] Sections with identical names now merge together
- Fixes #55
- Section requirements are now stored in a set to prevent duplicates
2018-07-28 10:37:38 +10:00
Arthur Uzulin 05afdba6df Merge branch 'master' into 1.12 2018-07-25 05:04:26 +10:00
Arthur Uzulin ceec486257 Removed old book test resources 2018-07-24 09:16:04 +10:00
KnightMiner dc0fea44df Improve exceptions thrown on module lifecycle events (#105)
Make exceptions thrown by events in modules look nicer by removing the awkward InvocationTargetException wrapper. InvocationTargetException is a wrapper used when a method invoked by reflection itself throws an exception. This lets the log be a bit nicer as we don't have a useless part of the stacktrace just telling us an exception was thrown

Also rethrow runtime exceptions as is so we don't add the exception handler to the stack trace unnecessarily
2018-07-20 19:48:31 -05:00
Arthur Uzulin 13695e8464 [Books] Updated book advancement system
- Books now list requirements by id because the client no longer
  knows about advancements until prerequisites unlocked
- Advancement id -> advancement is now cached so we no longer search every frame
2018-07-18 08:37:58 +10:00
Arthur Uzulin 849da5c034 [Books] Added separate render layer for tooltips
- Added drawText method that takes a list of for tooltip for separate rendering
- Deprecated TextDataRenderer's old drawText in favour of the new one
- Made TextDataRenderer's drawTooltip method public and renamed from drawHoveringText
- Updated ElementText to follow new norms

This fixes Tinkers book's tooltip compositing issues
2018-07-18 06:08:02 +10:00
KnightMiner 385ef0153e Fix NPE on ItemEdible tooltip if the item is undefined 2018-07-10 20:09:03 -05:00
Bernhard Bonigl f1fabbdb8d Fix book crashing when trying to display missing items #99 2018-04-10 19:13:56 +02:00
Bernhard Bonigl 29a1c7ed50 Have heart rendering loop correctly if it surpasses 12 rows of hearts #102 2018-04-10 19:09:58 +02:00
Bernhard Bonigl c43107d895 Remove last clientside only from getSubBlocks #103 2018-04-10 18:52:32 +02:00
alexbegt b6a65ad81c Remove @SideOnly(Side.CLIENT) from getSubBlocks as it is no longer only a client side method. (#103) https://github.com/MinecraftForge/MinecraftForge/commit/368d206cc6b85d16270dffa723f9f0d0b2e96e06 2018-04-09 20:57:38 -04:00
Bernhard Bonigl 521328f1a2 Change books to be lazily loaded. This also kills all of our loading dependency problems. 2017-07-29 11:46:14 +02:00
KnightMiner e7fab75e2c Added two helper classes for trading with villagers (#75)
Vanilla only implements this for items instead of stacks. Methods provided allow adding a trade using two inputs for an output and a random input for a random output. Any of those can be empty to default to emeralds
2017-07-19 20:21:58 -05:00
alexbegt ae39da0d26 Fix mantle not calling init() from the proxy, which is used to reload the books 2017-07-17 14:34:36 -04:00
alexbegt e648d8aa7f Remove unneeded imports inside Mantle.java and bump the required forge version to the current recommended build. 2017-07-16 15:24:53 -04:00
Bernhard Bonigl f32f1a0cd3 Change up book loading order to load books after they're registered in preInit 2017-07-16 16:12:32 +02:00
alexbegt eca36c5f7e Fix loading ITooltipFlag on server side. 2017-07-13 02:09:14 -04:00
alexbegt 90b2909990 Fix tooltips not being rendered anymore inside guis. 2017-07-07 20:01:35 -04:00
alexbegt cdf65b1bd1 Fix use of tab instead of spaces. 2017-07-04 10:51:31 -04:00
alexbegt 778c539065 Bump Forge + Mod version, and clean up any Item using addInformation to incude @Nullable for the World input. 2017-07-03 20:53:39 -04:00
alexbegt 9b9391e671 Fix GUI's not having a background as drawDefaultBackground isn't called by drawScreen anymore. 2017-07-03 13:07:39 -04:00
alexbegt 139290ca04 Allow Pulse Modules to use the new registration events added with the registry rewrite. 2017-06-29 00:11:10 -04:00
alexbegt 97a15397c9 Fix "acceptedMinecraftVersions" not accepting 1.12, and bump the required forge version. 2017-06-28 17:04:05 -04:00
alexbegt e7f02fe28e Update Mantle to 1.12, Some things might not work/need to be tested! 2017-06-28 16:37:18 -04:00
Bernhard Bonigl b4a223b6ae Inventory support for itemstacklist 2017-04-30 10:46:39 +02:00
Bernhard Bonigl eaee115cc5 Validation annotations to make itemstack shenanigans more obvious 2017-04-29 18:05:43 +02:00
Bernhard Bonigl ffc8db9286 More itemstacklist utility 2017-04-29 17:38:52 +02:00
Bernhard Bonigl 30c49e9f7b More 1.11 fixes/adjustments 2017-04-29 17:24:46 +02:00
Bernhard Bonigl fa18dee070 Fix itemstacklist derp 2017-04-22 15:04:01 +02:00
Bernhard Bonigl b153a00bbf Fix tile inventory 2017-04-22 14:29:17 +02:00
Bernhard Bonigl 9cf18e12f9 Finish optional update 2017-04-21 17:15:07 +02:00