Commit Graph
251 Commits
Author SHA1 Message Date
alexbegt 44a6d50f8f Add a 'PULSAR' log marker. 2019-07-07 21:00:39 -04:00
alexbegt c1c3391e4a Update to the latest forge, add caching features to the blockstate and model generators, implement an language generator for blocks and items and remove the unneeded deobf at. 2019-07-04 22:14:12 -04:00
alexbegt 4261d17f71 Add a way to generate Block/Item Model Jsons and BlockState Jsons by using the data pack generator. 2019-06-26 23:15:15 -04:00
alexbegt fc0a169436 Rename registerItemBlocks to registerBlockItems, fix a pulsar bug where the forced pulses are added to the config file and format the pulsar classes to match the rest of the project. 2019-06-25 17:41:06 -04:00
alexbegt 5ef2555b69 Fix all remaining errors in mantle's code, rename a few classes to match the new naming scheme. Sorry KnightMiner <3 2019-06-25 13:32:57 -04:00
alexbegt 5a1b21ea1c Fix more errors in mantle for 1.14 but a lot of changes need to be discussed due to the major changes in Minecraft. 2019-06-22 17:17:08 -04:00
alexbegt e0b30fdf33 Begin updating Mantle to 1.14.2! Lots of things are broken again sadly :/ 2019-06-20 22:41:22 -04:00
alexbegt a793b6b7bc Fix some more errors regarding blocks and Tile Entities and GUIs/Models.
GuiWidgetSlider now requires a forge event to work while being used to scroll with the mouse wheel.
2019-05-22 19:34:05 -04:00
alexbegt e0d244b5f6 Begin working on upgrading packets to the new 1.13/1.14 way of creating them. 2019-05-22 14:21:10 -04:00
KnightMiner a821fe0f52 Add register utility
Part of this is to replace EnumBlock. EnumBlock was to connect a block property to item metadata, but metadata is gone so its easier to just iterate a property array
ItemMetaDynamic is also gone as its whole purpose was to create items on their own line in one giant metadata item, also gone with metadata

Still need to do stairs, and possibly slabs, to reimplement the copyclass (so we don't have to manually copy all properties over)
2019-05-22 00:12:04 -05:00
alexbegt c14d405a75 Merge remote-tracking branch 'origin/1.12' into 1.13 2019-05-20 12:18:22 -04:00
alexbegt fe2064a964 Rework Pulsar Configs to require less TOML specific code;
Fix Pulsar not working with generic events such as registering blocks and items.
2019-05-20 12:14:31 -04:00
KnightMiner d9291f5171 Add support for a page to be module dependent if using a moduleFileRepository
Will be used in Tinkers Complement as its added modifiers are dependent on certain mods/modules being loaded
2019-05-18 00:18:44 -05:00
KnightMiner 95918e9005 isPulseLoaded is now case insensitive
This is mostly because I am too lazy to fix the bug where isPulseLoadedGlobal lowercases the string, there really is no reason to force same case so if you want all lowercase, you are free
2019-05-15 22:47:23 -05:00
alexbegt c25aa1a34b Add some comments to the code specific for TOML files. 2019-04-26 21:01:54 -04:00
alexbegt a85acc6f16 Implement TOML file support for Pulsar Configs; Feedback accepted. 2019-04-26 20:55:58 -04:00
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