Commit Graph
429 Commits
Author SHA1 Message Date
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
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 5a997ae395 Fix connected block textures 2017-04-21 18:34:34 +02:00
Bernhard Bonigl 9cf18e12f9 Finish optional update 2017-04-21 17:15:07 +02:00
Bernhard Bonigl 7ae8864590 Bring itemstacklist.withSize in line with vanilla implementation 2017-04-21 16:46:51 +02:00
Bernhard Bonigl a45607f7fc Itemstacklist util 2017-04-21 16:43:05 +02:00
Bernhard Bonigl 58ce663047 Update RecipeMatch API to return an Optional 2017-04-21 16:26:11 +02:00
Bernhard Bonigl b86dbdd37c Reinstate recipematchregistry api 2017-04-17 16:32:34 +02:00
alexbegt 2c966ad656 Clean up some checks to use isEmpty(), which is the same as checking the count is equal to 0. 2017-04-02 16:17:22 -04:00
alexbegt e4917779f9 Update Mantle to 1.11.2 + update 1.11 code to match master (1.10.2). 2017-03-06 21:00:05 -05:00
alexbegt 1b3b461360 Bump Mod version, and fix the required Forge version and Minecraft versions. 2016-11-19 14:36:50 -05:00
alexbegt 1ccbee7720 Begin Mantle's update to 1.11. Not everything is 100% completed. 2016-11-19 14:23:46 -05:00
Bernhard Bonigl 07d861ad14 Wrong object synced 2016-10-23 16:38:59 +02:00
Bernhard Bonigl bbc7701893 Fix wrong class check 2016-10-23 16:27:04 +02:00
Bernhard Bonigl 404df5f1ee Sync subclasses on an individual basis 2016-10-23 16:12:02 +02:00
Bernhard Bonigl 696bd8ac3e Fix exclusion logic and add transient too 2016-10-23 13:56:41 +02:00
Bernhard Bonigl 9130d059b3 Do not sync config file metadata 2016-10-23 13:41:05 +02:00
Bernhard Bonigl bbdf6bf239 Update example config to match 2016-10-18 10:02:40 +02:00
Bernhard Bonigl 40187bfb3b Merge branch 'master' of github.com:SlimeKnights/Mantle 2016-10-18 09:58:42 +02:00
Bernhard Bonigl 09288895a0 Add a config version to config files.
Mostly because we need a way to generate missing entries when they got added.
2016-10-18 09:58:33 +02:00
ShetiPhian 36d03067c8 Use an InvWrapper's display name when possible (#74)
This enables a different name to be provided for each InvWrapper, and enables a name to be displayed even if the TileEntity doesn't implement IWorldNameable.
2016-10-17 22:59:25 +02:00
Bernhard Bonigl a5b7f032cf Add the extra heart rendering from 1.7 TiC 2016-10-17 18:48:37 +02:00
Bernhard Bonigl 045a2eeb05 Fix text rendering after structures 2016-10-17 12:24:18 +02:00
Bernhard Bonigl 1843def19d We don't implement the layer stuff for now. Should be fine as is. 2016-10-16 17:04:57 +02:00
Bernhard Bonigl d200a1405c Start adding buttons for the structures, add animation toggle 2016-10-09 18:15:20 +02:00
Bernhard Bonigl 72fb9f29fe Add state support to structures 2016-10-09 17:09:48 +02:00
Bernhard Bonigl c6c923dcde Fix meta not being considered for book structures 2016-10-09 13:40:12 +02:00