Package net.nullved.pmweatherapi.metar
Class MetarServerStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<MetarStorageData>
net.nullved.pmweatherapi.metar.MetarStorage
net.nullved.pmweatherapi.metar.MetarServerStorage
- All Implemented Interfaces:
IServerStorage<MetarStorageData>,IStorage<MetarStorageData>,ISyncServerStorage<MetarStorageData>
public class MetarServerStorage
extends MetarStorage
implements ISyncServerStorage<MetarStorageData>
IServerStorage for MetarBlocks
You should not create a
MetarServerStorage, instead, use PMWStorages.metars()- Since:
- 0.15.3.3
- See Also:
-
Field Summary
Fields inherited from class net.nullved.pmweatherapi.metar.MetarStorage
ID, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerLevelgetLevel()Gets the level associated with thisIStorage.S2CStoragePacket<? extends IClientStorage<MetarStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Generates aS2CStoragePacketto be sent to the clientMethods inherited from class net.nullved.pmweatherapi.metar.MetarStorage
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
-
MetarServerStorage
public MetarServerStorage(net.minecraft.server.level.ServerLevel level)
-
-
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<MetarStorageData>- Specified by:
getLevelin interfaceIStorage<MetarStorageData>- Specified by:
getLevelin classMetarStorage- Returns:
- A
Levelinstance
-
packet
public S2CStoragePacket<? extends IClientStorage<MetarStorageData>> packet(net.minecraft.nbt.CompoundTag tag) Description copied from interface:IServerStorageGenerates aS2CStoragePacketto be sent to the client- Specified by:
packetin interfaceIServerStorage<MetarStorageData>- Parameters:
tag- TheCompoundTagto be sent- Returns:
- A
S2CStoragePacketinstance
-