Class RangeUpgradeStorage
java.lang.Object
net.nullved.pmweatherapi.storage.PMWStorage<BlockPosData>
net.nullved.pmweatherapi.storage.radar.RangeUpgradeStorage
- All Implemented Interfaces:
IStorage<BlockPosData>
- Direct Known Subclasses:
RangeUpgradeClientStorage,RangeUpgradeServerStorage
PMWStorage for Radar Upgrade Modules- Since:
- 0.16.4.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRangeUpgradeStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) -
Method Summary
Methods inherited from class net.nullved.pmweatherapi.storage.PMWStorage
add, add, clean, forAll, forAllWithinRange, forInAdjacentChunks, forInChunk, getAll, getAllWithinRange, getInAdjacentChunks, getInChunk, getLevel, read, remove, remove, removeByData, removeByPos, save, shouldRecalculate
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
RangeUpgradeStorage
public RangeUpgradeStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
-
-
Method Details
-
getExpectedDataType
public net.minecraft.resources.ResourceLocation getExpectedDataType()- Specified by:
getExpectedDataTypein classPMWStorage<BlockPosData>
-
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<BlockPosData>- Specified by:
getIdin classPMWStorage<BlockPosData>- Returns:
- A
ResourceLocation
-
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<BlockPosData>- Specified by:
versionin classPMWStorage<BlockPosData>- Returns:
- The version of the saved data
-