Class WSRServerStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<WSRStorageData>
net.nullved.pmweatherapi.radar.storage.WSRStorage
net.nullved.pmweatherapi.radar.storage.WSRServerStorage
- All Implemented Interfaces:
IServerStorage<WSRStorageData>,IStorage<WSRStorageData>,ISyncServerStorage<WSRStorageData>
IServerStorage for WSR88DCores
You should not create a
WSRServerStorage, instead, use PMWStorages.wsrs()- Since:
- 0.15.3.3
- See Also:
-
Field Summary
Fields inherited from class net.nullved.pmweatherapi.radar.storage.WSRStorage
ID, VERSION -
Constructor Summary
ConstructorsConstructorDescriptionWSRServerStorage(net.minecraft.server.level.ServerLevel level) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWStorages.wsrs() -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerLevelgetLevel()Gets the level associated with thisIStorage.S2CStoragePacket<? extends IClientStorage<WSRStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Generates aS2CStoragePacketto be sent to the clientMethods inherited from class net.nullved.pmweatherapi.radar.storage.WSRStorage
getExpectedDataType, getId, versionMethods inherited from class net.nullved.pmweatherapi.storage.PMWStorage
add, add, clean, forAll, forAllWithinRange, forInAdjacentChunks, forInChunk, getAll, getAllWithinRange, getInAdjacentChunks, getInChunk, read, remove, remove, removeByData, removeByPos, save, shouldRecalculateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.nullved.pmweatherapi.storage.IServerStorage
syncAdd, syncAdd, syncAllToAll, syncAllToPlayer, syncRemove, syncRemove, syncRemoveByData, syncRemoveByPosMethods 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, versionMethods inherited from interface net.nullved.pmweatherapi.storage.ISyncServerStorage
addAndSync, addAndSync, removeAndSync, removeAndSync, removeAndSyncByData, removeAndSyncByPos
-
Constructor Details
-
WSRServerStorage
public WSRServerStorage(net.minecraft.server.level.ServerLevel level) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWStorages.wsrs()- Parameters:
level- The level to create this storage for- Since:
- 0.15.3.3
-
-
Method Details
-
getLevel
public net.minecraft.server.level.ServerLevel getLevel()Description copied from class:PMWStorageGets the level associated with thisIStorage. For the client side, it returns theClientLevel. For the server side, it returns aServerLevel.- Specified by:
getLevelin interfaceIServerStorage<WSRStorageData>- Specified by:
getLevelin interfaceIStorage<WSRStorageData>- Specified by:
getLevelin classPMWStorage<WSRStorageData>- Returns:
- A
Levelinstance
-
packet
public S2CStoragePacket<? extends IClientStorage<WSRStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Description copied from interface:IServerStorageGenerates aS2CStoragePacketto be sent to the client- Specified by:
packetin interfaceIServerStorage<WSRStorageData>- Parameters:
tag- TheCompoundTagto be sent- Returns:
- A
S2CStoragePacketinstance
-