1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-10 09:20:28 +00:00
CC-Tweaked/projects/fabric/src
Jonathan Coates 0ff58cdc3e
Unify the generic peirpheral system a litte
Allows registering arbitrary block lookup functions instead of a
platform-specific capability. This is roughly what Fabric did before,
but generalised to also take an invalidation callback.

This callback is a little nasty - it needs to be a NonNullableConsumer
on Forge, but that class isn't available on Fabric. For now, we make the
lookup function (and thus the generic peripheral provider) generic on
some <T extends Runnable> type, then specialise that on the Forge side.
Hopefully we can clean this up when NeoForge reworks capabilities.
2023-10-17 21:59:16 +01:00
..
client Split some textures into sprite sheets 2023-08-27 18:02:51 +01:00
generated/resources Try to make recipe serialisers more reusable 2023-09-23 18:24:02 +01:00
main Unify the generic peirpheral system a litte 2023-10-17 21:59:16 +01:00
test License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
testMod License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00