Class RadarServerStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<RadarStorageData>
net.nullved.pmweatherapi.radar.storage.RadarStorage
net.nullved.pmweatherapi.radar.storage.RadarServerStorage
- All Implemented Interfaces:
IServerStorage<RadarStorageData>,IStorage<RadarStorageData>,ISyncServerStorage<RadarStorageData>
public class RadarServerStorage
extends RadarStorage
implements ISyncServerStorage<RadarStorageData>
IServerStorage for RadarBlocks
You should not create a
RadarServerStorage, instead, use PMWStorages.radars()- Since:
- 0.15.3.3
- See Also:
-
Field Summary
Fields inherited from class net.nullved.pmweatherapi.radar.storage.RadarStorage
ID, VERSION -
Constructor Summary
ConstructorsConstructorDescriptionRadarServerStorage(net.minecraft.server.level.ServerLevel level) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWStorages.radars() -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerLevelgetLevel()Gets the level associated with thisIStorage.S2CStoragePacket<? extends IClientStorage<RadarStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Generates aS2CStoragePacketto be sent to the clientMethods inherited from class net.nullved.pmweatherapi.radar.storage.RadarStorage
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
-
RadarServerStorage
public RadarServerStorage(net.minecraft.server.level.ServerLevel level) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWStorages.radars()- 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<RadarStorageData>- Specified by:
getLevelin interfaceIStorage<RadarStorageData>- Specified by:
getLevelin classRadarStorage- Returns:
- A
Levelinstance
-
packet
public S2CStoragePacket<? extends IClientStorage<RadarStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Description copied from interface:IServerStorageGenerates aS2CStoragePacketto be sent to the client- Specified by:
packetin interfaceIServerStorage<RadarStorageData>- Parameters:
tag- TheCompoundTagto be sent- Returns:
- A
S2CStoragePacketinstance
-