1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-25 08:26:54 +00:00
CC-Tweaked/projects/common/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 Replace several Guava classes with Java stdlib 2023-10-11 09:59:55 +01:00
main Unify the generic peirpheral system a litte 2023-10-17 21:59:16 +01:00
test/java/dan200/computercraft Replace several Guava classes with Java stdlib 2023-10-11 09:59:55 +01:00
testFixtures/java/dan200/computercraft/test/shared Fix crash when joining a dedicated server 2023-10-08 15:22:32 +01:00
testMod Replace several Guava classes with Java stdlib 2023-10-11 09:59:55 +01:00