Interface IClientStorage<D extends IStorageData>

All Superinterfaces:
IStorage<D>
All Known Implementing Classes:
MetarClientStorage, RadarClientStorage, WSRClientStorage

public interface IClientStorage<D extends IStorageData> extends IStorage<D>
The interface defining the client-side implementation of a Storage such as RadarClientStorage

Every time the client changes dimension, a new IClientStorage is created for each storage.
Since:
0.15.3.3
  • Method Details

    • getLevel

      net.minecraft.client.multiplayer.ClientLevel getLevel()
      Specified by:
      getLevel in interface IStorage<D extends IStorageData>
    • syncAll

      default void syncAll(net.minecraft.nbt.CompoundTag tag)
      Syncs all data from a S2CStoragePacket with operation overwrite into this storage's memory
      Parameters:
      tag - The CompoundTag of the data
      Since:
      0.15.3.3
    • syncAdd

      default void syncAdd(net.minecraft.nbt.CompoundTag tag)
      Syncs data from a S2CStoragePacket with operation add into this storage's memory
      Parameters:
      tag - The CompoundTag of the data
      Since:
      0.15.3.3
    • syncRemove

      default void syncRemove(net.minecraft.nbt.CompoundTag tag)
      Syncs data from a S2CStoragePacket with operation remove into this storage's memory
      Parameters:
      tag - The CompoundTag of the data
      Since:
      0.15.3.3