Package net.nullved.pmweatherapi.metar
Class MetarStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<MetarStorageData>
net.nullved.pmweatherapi.metar.MetarStorage
- All Implemented Interfaces:
IStorage<MetarStorageData>
- Direct Known Subclasses:
MetarClientStorage,MetarServerStorage
PMWStorage for MetarBlocks- Since:
- 0.15.3.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMetarStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationnet.minecraft.resources.ResourceLocationgetId()TheResourceLocationID of thisIStorage.abstract net.minecraft.world.level.LevelgetLevel()Gets the level associated with thisIStorage.intversion()The version of thisIStorage.Methods 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, shouldRecalculate
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
MetarStorage
public MetarStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
-
-
Method Details
-
getLevel
public abstract net.minecraft.world.level.Level 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 interfaceIStorage<MetarStorageData>- Specified by:
getLevelin classPMWStorage<MetarStorageData>- Returns:
- A
Levelinstance
-
getId
public net.minecraft.resources.ResourceLocation getId()Description copied from class:PMWStorageTheResourceLocationID of thisIStorage. Used primarily for saving to the file atdata/<namespace>_<path>.dat.- Specified by:
getIdin interfaceIStorage<MetarStorageData>- Specified by:
getIdin classPMWStorage<MetarStorageData>- Returns:
- A
ResourceLocation
-
getExpectedDataType
public net.minecraft.resources.ResourceLocation getExpectedDataType()- Specified by:
getExpectedDataTypein classPMWStorage<MetarStorageData>
-
version
public int version()Description copied from class:PMWStorageThe version of thisIStorage. To disable version data from being saved, return-1- Specified by:
versionin interfaceIStorage<MetarStorageData>- Specified by:
versionin classPMWStorage<MetarStorageData>- Returns:
- The version of the saved data
-