Commit Graph
780 Commits
Author SHA1 Message Date
KnightMiner 3c35ecd859 Make item register in block deferred public 2021-01-24 01:57:05 -05:00
KnightMiner e23a6c3fb3 Add methods for building blocks to replace the main block class 2021-01-23 17:01:27 -05:00
KnightMiner 49d71464a2 Add single item handler, a class for a inventory with exactly 1 slot 2021-01-23 16:53:43 -05:00
KnightMiner 037e98c851 Port tag preference system from TiC 2021-01-23 16:53:17 -05:00
KnightMiner de08cc8808 Port entity ingredient from TiC 2021-01-23 16:50:51 -05:00
KnightMiner b7abf2066a Fix removal of a field (SlimeKnights/TinkersMechworks#109) 2021-01-23 12:54:20 -05:00
KnightMiner 447d3aa3a9 Add config helpers from Inspirations and a Mantle client config
Closes #133
2021-01-16 13:59:55 -05:00
KnightMiner f6bfe6a098 Fix extra heart render handler not firing post (#146)
Also some general cleanup to the code, mainly adding comments
2021-01-16 13:34:26 -05:00
KnightMiner 295550c868 Update to 1.16.5
Mostly gradle cleanups to make marking updates easier, I think our version ranges already supported 1.16.5
2021-01-16 13:08:06 -05:00
KnightMiner 54fe5ba23c Deprecate multiblock stuff
Currently just Tinkers is using this, and Tinkers rewrote the whole system for 1.16. If another mod is using this let me know and I can pull the updated stuff into Mantle
2021-01-16 13:07:32 -05:00
KnightMiner dfcf3b4146 Make InventoryBlock more general
Uses item capabilities for item dropping and a new interface for renaming
2021-01-16 12:59:20 -05:00
David Burnett 61d251d45a Nullable advancement ID 2021-01-16 00:09:06 -05:00
David Burnett d5c99d6293 Add abstract finished recipe 2021-01-16 00:05:11 -05:00
David Burnett bfb76d20c4 Add option to abstract recipe builder for optional advancements 2021-01-15 23:49:04 -05:00
David Burnett 783c3b03ec Add background container screen and item handler slot 2021-01-15 18:51:49 -05:00
David Burnett ef72764ca0 Fix edge case of UV exactly 1 being set to 0 2021-01-14 20:25:56 -05:00
David Burnett e3df197a97 Mod UV in the fluid renderer 2021-01-14 20:05:07 -05:00
David Burnett aba8ecdc96 Allow scaling a scalable element up 2021-01-14 13:22:09 -05:00
David Burnett 9d88ccb624 Revert "Remove module offset"
Apparently 1.12 had that too, so being inconsistent with everything else is just accepted. I should just rewrite this whole thing if I did not hate UIs so much
2021-01-10 23:17:00 -05:00
David Burnett 83bf1a136d Remove module offset
Was inconsistent with the mouse position, draw background, and slot locations
2021-01-10 22:35:52 -05:00
David Burnett 535a3e9d5b Make multi module container less strict
Want to discourage implementing IInventory for multiblocks, main user of this interface
2021-01-10 19:38:14 -05:00
David Burnett a3430a3adf Extract namable stuff from inventory tile entity to new superclass
Want some namable containers that are not traditional mantle inventories
Also introduced new writeSynced method to simplify writing clean NBT syncing
2021-01-10 16:57:42 -05:00
David Burnett 71c2ae2181 Correct fluid ingredient to use ITag instead of Tag 2021-01-08 23:52:55 -05:00
David Burnett 63b013b9b4 Add recipe serializer base class
Because its annoying for every serializer to extend one thing and implement another
2021-01-08 22:16:09 -05:00
Arthur (fuj1n) Uzulin f9c99feaf3 Added softwrapping to section list text, fixed softwrapper newline handling 2021-01-06 17:08:37 +11:00
KnightMiner dbfcff12a9 Make baked model constructors public
Easier to extend them
2020-12-31 17:06:10 -05:00
KnightMiner 448498d7ed Missing mappings util from TiC, so when we remove it there we still have it
Plus its useful in other mods
2020-12-30 20:12:26 -05:00
KnightMiner 893d856b05 Catch and log exceptions in faucet fluid loading 2020-12-28 21:30:12 -05:00
KnightMiner 9b87ae25de Prevent intitializing faucet fluid loader multiple times 2020-12-28 19:47:51 -05:00
KnightMiner 206a86ef0f Fix fluid renderer handling of light
Fluid renderer now uses fluid light in calculations
Fluid renderer no longer mixes up sky and block light coordinates
2020-12-28 19:20:17 -05:00
KnightMiner 769f864322 Port faucet fluid loader from Ceramics, to share between Ceramics and Tinkers 2020-12-28 17:44:26 -05:00
KnightMiner 8a3fdabc23 Make faces getter public for fluid cuboids 2020-12-25 18:17:38 -05:00
progwml6 995c161b38 attempt to fix missing toml file on jenkins 2020-11-02 22:12:56 -05:00
progwml6 8d9d5930c6 update for 1.16.4 support 2020-11-02 21:50:28 -05:00
KnightMiner 46b266883a Sync inventory size on TE load
Breaks the container otherwise, leading to a painful to debug experience. Most of TiC syncs all NBT so we never noticed this error
2020-09-17 01:01:18 -04:00
KnightMiner 4d42154a16 Fix inventory tile entity not invalidating capabilities 2020-09-16 22:26:15 -04:00
KnightMiner 80c7b00421 Remove 1.16.1 compat
Looks like the tags stuff does not compile there
2020-09-16 22:16:51 -04:00
KnightMiner 7826020114 Switch to TagCollectionManager for fluid tag deserializing
FluidTags is not filled that early
2020-09-16 22:09:16 -04:00
KnightMiner fdf24f2fc4 Add WeakConsumerWrapper, to be passed into a capabilties addListener 2020-09-16 22:03:54 -04:00
Marty E. Plummer 4ada54db1b mantle: 'update' to 1.16.3
Mostly remapping, and that's just because I updated the mapping.
Resultant mod loads on minecraft 1.16.1, 1.16.2, and 1.16.3 with
forge versions 32.0.108, 33.0.61, and 34.0.7 respectively.

Signed-off-by: Marty E. Plummer <[email protected]>
2020-09-16 21:59:46 -04:00
KnightMiner 20d76939ee Fix sized ingredient not using size parameter in some constructors 2020-09-12 23:51:09 -04:00
KnightMiner 712adc499d Port IEarlySelectiveReloadListener from TiC/Inspirations 2020-09-05 18:49:53 -04:00
KnightMiner 4019fb3170 Make IMultiRecipe less scrict with generics 2020-09-05 18:49:45 -04:00
KnightMiner 26b668aabe Sized ingredient improvemenets
Now has fromItems and fromTag. fromStacks is a little misleading whether it takes stack size into account, so I left it out
amount_needed is now optional in JSON, and is skipped if not required
EMPTY is now public (not sure why I made it private)
2020-09-02 18:06:24 -04:00
KnightMiner 4b582350cf Add new sized ingredient util
Partial replacement for recipe match, handles the amount needed part of modifier recipes. Amount matched is done in material recipes only
2020-08-31 21:03:23 -04:00
KnightMiner acd324dd43 Rename a few adapter methods to registerDefault
Fixes a conflict between Item and Function<Properties,T> of all things
2020-08-26 21:01:36 -04:00
KnightMiner d321e30a5d Add a fluid ingredient deserialize method using a JsonElement 2020-08-26 20:52:09 -04:00
KnightMiner 8de0584019 Improve JsonHelper.parseList
Parameters are now a bit cleaner
2020-08-26 20:51:45 -04:00
KnightMiner 24a9a1695a Add more general version of arrayToVector for the sake of other sizes
Can use for a vector2f, or a vector4f, or even a matrix
2020-08-23 15:35:26 -04:00
KnightMiner 7285888e46 Improve abstract recipe builder group
Group is just never null now, so no need for the getter
Add a set group method that takes a resource location
2020-08-21 10:36:29 -04:00