Class RadarClientStorage

java.lang.Object
net.nullved.pmweatherapi.radar.RadarStorage
net.nullved.pmweatherapi.client.radar.RadarClientStorage

public class RadarClientStorage extends RadarStorage
A Radar Storage for the client side. Every time the client changes dimension, a new RadarClientStorage will be created
You should not create a RadarClientStorage directly, instead, use PMWClientStorages.getRadars()
Since:
0.14.15.3
  • Constructor Details

    • RadarClientStorage

      public RadarClientStorage(net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> dimension)
      DO NOT CALL THIS CONSTRUCTOR!!!
      Get a radar storage from PMWClientStorages.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 this RadarClientStorage
      Specified by:
      getLevel in class RadarStorage
      Returns:
      The Minecraft instance Level
      Since:
      0.14.15.3
    • syncAdd

      public void syncAdd(net.minecraft.nbt.CompoundTag tag)
      Syncs data from a S2CRadarsPacket with operation add into this storage's memory
      Since:
      0.14.15.3
    • syncRemove

      public void syncRemove(net.minecraft.nbt.CompoundTag tag)
      Syncs data from a S2CRadarsPacket with operation remove into this storage's memory
      Since:
      0.14.15.3