Skip to content

[Feature] Storage Rework - #3

Merged
nullved merged 7 commits into
masterfrom
feat/storage-rework
Sep 6, 2025
Merged

[Feature] Storage Rework#3
nullved merged 7 commits into
masterfrom
feat/storage-rework

Conversation

@nullved

Copy link
Copy Markdown
Owner

Reworks storages to be able to be used by addon developers instead of internally. Wiki article coming soon

Start Rework
- Reworked Storages to be available to any addon with little work. Storages store many BlockPos so that they can be referenced later
- Added interfaces for Storages (IStorage, IServerStorage (no sync), ISyncServerStorage, and IClientStorage)
- Added base PMWStorage class
- Completely rewrote PMWStorages
- Added StorageInstance to hold storage IDs, maps, and storage factories
- Added S2CStoragePacket for syncing storage data
- Added PMWUtils#isCornerAdjacent, #testAround, #storageCornerAdjacent, and #isRadarCornerAdjacent
- Moved PMWNetworking#RADARS_ID to RadarStorage.ID
- Deprecated PMWSavedData, replaced by PMWStorageSavedData
- Moved ExampleOverlay to the example mod id
- ID Overlay now requires you to crouch and renders all overlays
- Changed NearbyRadarsCommand to StoragesCommand and added new features. This change remaps /nearbyradars <x> to /storages pmweatherapi:radars <x>
Took 1 minute
Push command updates
- Changed NearbyRadarsCommand to StoragesCommand and added new features. This change remaps /nearbyradars <x> to /storages pmweatherapi:radars <x>
Took 1 minute
@nullvednullved self-assigned this Jul 19, 2025
nullvedand others added 5 commits July 21, 2025 10:07
# Conflicts:
#	gradle.properties
#	src/main/java/net/nullved/pmweatherapi/client/render/IDOverlay.java
Took 7 minutes
# Conflicts:
#	gradle.properties
Took 3 minutes
- Add Client Storages
Took 1 hour 5 minutes
- Storages should be complete or near complete
- Storages allow you to save data in a format of your choice so that the data can be read even when chunks are not loaded. Useful for things such as showing radar positions in unloaded chunks (Radar Networks coming soon!)
- Added storages for Metars (Weather Stations) and WSR-88Ds
- Added #renderTexture methods to Radar Overlays
- Added RadarMode#disableBaseRendering to disable the defualt pixel renderer (Needed by Hezi for Radar Overhaul)
- And a bunch more stuff that I don't to write right now
@nullved
nullved merged commit 4067d4b into masterSep 6, 2025
1 check passed
@nullved
nullved deleted the feat/storage-rework branch September 7, 2025 17:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@nullved