Class RadarStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<RadarStorageData>
net.nullved.pmweatherapi.radar.storage.RadarStorage
- All Implemented Interfaces:
IStorage<RadarStorageData>
- Direct Known Subclasses:
RadarClientStorage,RadarServerStorage
PMWStorage for RadarBlocks- Since:
- 0.15.3.3
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRadarStorage(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, 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
-
RadarStorage
public RadarStorage(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<RadarStorageData>- Specified by:
getLevelin classPMWStorage<RadarStorageData>- 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<RadarStorageData>- Specified by:
getIdin classPMWStorage<RadarStorageData>- Returns:
- A
ResourceLocation
-
getExpectedDataType
public net.minecraft.resources.ResourceLocation getExpectedDataType()- Specified by:
getExpectedDataTypein classPMWStorage<RadarStorageData>
-
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<RadarStorageData>- Specified by:
versionin classPMWStorage<RadarStorageData>- Returns:
- The version of the saved data
-