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