1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-25 00:16:54 +00:00
CC-Tweaked/projects
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
..
common Attempt at splitting up pocket computer logic 2024-07-28 21:13:07 +01:00
common-api Add get/setUpgrade to IPocketAccess 2024-07-26 09:51:09 +01:00
core Add a cc.strings.split method 2024-07-24 22:18:50 +01:00
core-api Fix a couple of warnings 2024-03-10 12:04:40 +00:00
fabric Register modems as attached to their adjacent block 2024-07-26 18:28:13 +01:00
fabric-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
forge Register modems as attached to their adjacent block 2024-07-26 18:28:13 +01:00
forge-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
lints Fix NPE when rendering turtle's label 2024-04-06 08:46:19 +01:00
standalone Small bits of cleanup 2024-06-26 18:07:57 +01:00
web Publish docs via an artifact instead 2024-06-19 09:57:56 +01:00
ARCHITECTURE.md Add a standalone CC:T UI 2023-10-28 17:58:11 +01:00