1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-07-05 11:33:21 +00:00
CC-Tweaked/projects/common
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
..
src Unify the generic peirpheral system a litte 2023-10-17 21:59:16 +01:00
build.gradle.kts Fix common jar not actually being published 2023-10-11 19:15:36 +01:00