1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-05 09:36:19 +00:00
CC-Tweaked/projects
Jonathan Coates 30dc4cb38c
Simplify our networking multi-platform code
Historically we used Forge's SimpleChannel methods (and
PacketDistributor) to send the packets to the client. However, we don't
need to do that - it is sufficient to convert it to a vanilla packet,
and send the packet ourselves.

Given we need to do this on Fabric, it makes sense to do this on Forge
as well. This allows us to unify (and thus simplify) a lot of how packet
sending works.

At the same time, we also remove the handling of speaker audio during
decoding. We originally did this to avoid the additional copy of audio
data. However, this doesn't work on 1.20.4 (as packets aren't
encoded/decoded on singleplayer), so it makes sense to do this
Correctly(TM).

This also allows us to get rid of ClientNetworkContext.get(). We do
still need to service load this class (as Forge's networking isn't split
up in the same way Fabric's is), but we'll be able to drop that in
1.20.4.

Finally, we move the record playing code from ClientNetworkContext to
ClientPlatformHelper. This means the network context no longer needs to
be platform-specific!
2024-01-14 22:53:36 +00:00
..
common Simplify our networking multi-platform code 2024-01-14 22:53:36 +00:00
common-api Replace several Guava classes with Java stdlib 2023-10-11 09:59:55 +01:00
core Fix incorrect "Fix incorrect "incorrect incorrect"" 2024-01-14 16:27:55 +00:00
core-api Allow generic sources to have instance methods 2023-11-22 10:06:11 +00:00
fabric Simplify our networking multi-platform code 2024-01-14 22:53:36 +00:00
fabric-api Publish Fabric jars to CF/Modrinth 2023-03-15 23:20:13 +00:00
forge Simplify our networking multi-platform code 2024-01-14 22:53:36 +00:00
forge-api License CC:T according to the REUSE specification (#1351) 2023-03-15 21:52:13 +00:00
lints Flesh out MemoryMount into a writable mount 2023-09-29 22:15:23 +01:00
standalone Allow local domains in the standalone emulator 2023-12-20 17:43:08 +00:00
web Bump CC:T to 1.109.1 2023-12-16 19:09:39 +00:00
ARCHITECTURE.md Add a standalone CC:T UI 2023-10-28 17:58:11 +01:00