Skip to content

Conversation

@nullved
Copy link
Owner

@nullved nullved commented Jul 19, 2025

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

nullved added 2 commits July 19, 2025 15:13
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
@nullved nullved self-assigned this Jul 19, 2025
nullved and 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 master Sep 6, 2025
1 check passed
@nullved nullved deleted the feat/storage-rework branch September 7, 2025 17:47
Sign up for free to 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.

2 participants