Interface NetworkStorage

All Known Implementing Classes:
AnvilStorage, BeaconStorage, BookData, ClientBookData, CraftingTableStorage, ETableStorage, ETableWorldStorage, ItemStorage, ListOfItemsStorage, NullStorage, SmithingTableStorage

public interface NetworkStorage
An object that can be written into and out of a buffer. This is used by ImmersiveHandler to transfer Immersive storage contents between the server and the client.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decode(net.minecraft.network.FriendlyByteBuf buffer)
    Decode the buffer into this object.
    void
    encode(net.minecraft.network.FriendlyByteBuf buffer)
    Encode this storage into a buffer.
  • Method Details

    • encode

      void encode(net.minecraft.network.FriendlyByteBuf buffer)
      Encode this storage into a buffer.
      Parameters:
      buffer - Buffer to encode storage into.
    • decode

      void decode(net.minecraft.network.FriendlyByteBuf buffer)
      Decode the buffer into this object.
      Parameters:
      buffer - Buffer to decode from.