CC-Tweaked/src/main/java/dan200/computercraft/shared
Jonathan Coates de6f27ceaf
Rewrite speaker networking code
Speakers now play sounds using a custom set of packets.
 - When playing a sound, we send the resource id, position, volume,
   pitch and a UUID for the _speaker_ to all nearby clients.
 - This UUID is then used when we need to update the sound. When the
   speaker is moved or destroyed, we send a new packet to clients and
   update accordingly.

This does have one side effect, that speakers can now only play one
sound at a time. I think this is accceptable - otherwise it's possible
to spam ward in a loop.

Notes still use the old networking code, and so will not be affected.

Closes #823
2021-06-18 22:23:04 +01:00
..
command Add button to view computer's folder 2021-05-28 22:19:04 +01:00
common Minor code style fixups 2021-06-12 22:18:35 +01:00
computer Minor code style fixups 2021-06-12 22:18:35 +01:00
data Reformat src/main/java 2021-01-14 09:09:02 +00:00
integration Minor code style fixups 2021-06-12 22:18:35 +01:00
media Better error handling in treasure disks 2021-05-31 19:24:38 +01:00
network Rewrite speaker networking code 2021-06-18 22:23:04 +01:00
peripheral Rewrite speaker networking code 2021-06-18 22:23:04 +01:00
pocket Rewrite speaker networking code 2021-06-18 22:23:04 +01:00
turtle Rewrite speaker networking code 2021-06-18 22:23:04 +01:00
util Minor code style fixups 2021-06-12 22:18:35 +01:00
wired 2020 -> 2021 2021-01-06 17:13:40 +00:00
BundledRedstone.java Switch to Mojang mappings 2021-01-09 19:22:58 +00:00
Capabilities.java 2020 -> 2021 2021-01-06 17:13:40 +00:00
CommonHooks.java Remove "*Proxy" classes 2021-06-05 10:09:28 +01:00
Config.java Reformat src/main/java 2021-01-14 09:09:02 +00:00
MediaProviders.java 2020 -> 2021 2021-01-06 17:13:40 +00:00
Peripherals.java Switch to Mojang mappings 2021-01-09 19:22:58 +00:00
PocketUpgrades.java Preserve registration order of upgrades 2021-01-15 15:32:11 +00:00
Registry.java Remove "*Proxy" classes 2021-06-05 10:09:28 +01:00
TurtlePermissions.java Switch to Mojang mappings 2021-01-09 19:22:58 +00:00
TurtleUpgrades.java Minor code style fixups 2021-06-12 22:18:35 +01:00