Class RadarClientStorage
java.lang.Object
net.nullved.pmweatherapi.radar.RadarStorage
net.nullved.pmweatherapi.client.radar.RadarClientStorage
A Radar Storage for the client side.
Every time the client changes dimension, a new
You should not create a
RadarClientStorage will be created
You should not create a
RadarClientStorage directly, instead, use PMWClientStorages.getRadars()- Since:
- 0.14.15.3
-
Constructor Summary
ConstructorsConstructorDescriptionRadarClientStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWClientStorages.getRadars() -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.LevelgetLevel()Gets the level associated with thisRadarClientStoragevoidsyncAdd(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CRadarsPacketwith operationaddinto this storage's memoryvoidsyncRemove(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CRadarsPacketwith operationremoveinto this storage's memoryMethods inherited from class net.nullved.pmweatherapi.radar.RadarStorage
addRadar, addRadars, getAllRadars, getRadarsInChunk, read, removeRadar, removeRadars, save, shouldRecalculate
-
Constructor Details
-
RadarClientStorage
public RadarClientStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension) DO NOT CALL THIS CONSTRUCTOR!!!
Get a radar storage fromPMWClientStorages.getRadars()- Parameters:
dimension- The dimension to create this storage for- Since:
- 0.14.15.3
-
-
Method Details
-
getLevel
public net.minecraft.world.level.Level getLevel()Gets the level associated with thisRadarClientStorage- Specified by:
getLevelin classRadarStorage- Returns:
- The
MinecraftinstanceLevel - Since:
- 0.14.15.3
-
syncAdd
public void syncAdd(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CRadarsPacketwith operationaddinto this storage's memory- Since:
- 0.14.15.3
-
syncRemove
public void syncRemove(net.minecraft.nbt.CompoundTag tag) Syncs data from aS2CRadarsPacketwith operationremoveinto this storage's memory- Since:
- 0.14.15.3
-