1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-03-13 15:08:12 +00:00
Jonathan Coates ed0b156e05
Attempt at splitting up pocket computer logic
Oh, I hate the pocket computer code so much. Minecraft was really not
designed to attach this sort of behaviour to computers. This commit is
an attempt of cleaning this up[^1].

Firstly, we move the the pocket computer state (upgrades, light) out of
PocketServerComputer and into a new PocketBrain class. This now acts as
the sole source-of-truth, with all state being synced back to the
original item stack on the entity tick.

This also adds a new PocketHolder interface, which generalises over the
various types that can hold a pocket computer (players and item
entities right now, possibly lecterns in the future).

[^1]: I'd say simplifying, but this would be a lie.
2024-07-28 21:13:07 +01:00
..
2024-07-24 22:18:50 +01:00
2024-03-10 12:04:40 +00:00
2024-06-26 18:07:57 +01:00
2024-06-19 09:57:56 +01:00
2023-10-28 17:58:11 +01:00