mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2026-11-25 16:47:12 +00:00
I want to decouple the storage of upgrades (e.g. in data components) from
what people consume in the public API. This removes UpgradeData from
the API, pushing all interactions to go through UpgradeHandle.
- Split UpgradeHandle into a read-only UpgradeHandle and read/write
MutableUpgradeHandle. {IPocketAccess,ITurtleAccess}.getUpgrade return
a mutable version, and turtle modellers consume a read-only version.
- Remove setUpgrade from the public API. This now lives in the internal
TurtleAccessInternal (much like PocketComputerInternal did already).
Finding/looking-up an upgrade has never been exposed to the API, so
I don't think this is a big loss.
- Remove all other upgrade getters (either returning the upgrade or
UpgradeData) from the turtle/pocket access.