Interface IClientStorage<D extends IStorageData>
- All Superinterfaces:
IStorage<D>
- All Known Implementing Classes:
MetarClientStorage,RadarClientStorage,WSRClientStorage
The interface defining the client-side implementation of a Storage such as
Every time the client changes dimension, a new
RadarClientStorage
Every time the client changes dimension, a new
IClientStorage is created for each storage.- Since:
- 0.15.3.3
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.multiplayer.ClientLevelgetLevel()default voidsyncAdd(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CStoragePacketwith operationaddinto this storage's memorydefault voidsyncAll(net.minecraft.nbt.CompoundTag tag) Syncs all data from aS2CStoragePacketwith operationoverwriteinto this storage's memorydefault voidsyncRemove(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CStoragePacketwith operationremoveinto this storage's memoryMethods inherited from interface net.nullved.pmweatherapi.storage.IStorage
add, add, clean, forAll, forAllWithinRange, forInAdjacentChunks, forInChunk, getAll, getAllWithinRange, getId, getInAdjacentChunks, getInChunk, read, remove, remove, removeByData, removeByPos, save, shouldRecalculate, version
-
Method Details
-
getLevel
net.minecraft.client.multiplayer.ClientLevel getLevel()- Specified by:
getLevelin interfaceIStorage<D extends IStorageData>
-
syncAll
default void syncAll(net.minecraft.nbt.CompoundTag tag) Syncs all data from aS2CStoragePacketwith operationoverwriteinto this storage's memory- Parameters:
tag- TheCompoundTagof the data- Since:
- 0.15.3.3
-
syncAdd
default void syncAdd(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CStoragePacketwith operationaddinto this storage's memory- Parameters:
tag- TheCompoundTagof the data- Since:
- 0.15.3.3
-
syncRemove
default void syncRemove(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CStoragePacketwith operationremoveinto this storage's memory- Parameters:
tag- TheCompoundTagof the data- Since:
- 0.15.3.3
-