Interface WorldStorageHandler<S extends NetworkStorage>

All Superinterfaces:
ImmersiveHandler<S>
All Known Implementing Classes:
AnvilHandler, BeaconHandler, CraftingHandler, ETableHandler, ItemWorldStorageHandler, LecternHandler, SmithingTableHandler

@Beta public interface WorldStorageHandler<S extends NetworkStorage> extends ImmersiveHandler<S>
An ImmersiveHandler that saves and loads from world save data using WorldStorage instances. See WorldStorage for more info.
Important info:
  • Method Details

    • clientAuthoritative

      default boolean clientAuthoritative()
      Since the retrieval and saving of world storages are server-side only, this Immersive cannot be client authoritative.
      Specified by:
      clientAuthoritative in interface ImmersiveHandler<S extends NetworkStorage>
      Returns:
      Whether this immersive should have tracking initiated by the client. The same value should always be returned by this method.
    • getEmptyWorldStorage

      WorldStorage getEmptyWorldStorage()
      Returns:
      An empty WorldStorage to load from NBT in.
    • getWorldStorageClass

      Class<? extends WorldStorage> getWorldStorageClass()
      Returns:
      The class this handler's world storage uses.