Interface InsertableStorage

All Known Subinterfaces:
CompositeAwareChild, CompositeStorage, ExternalStorageProvider, FuzzyRootStorage, LimitedStorage, RootStorage, SerializableStorage, Storage, StorageNetworkComponent, TrackedStorage
All Known Implementing Classes:
AbstractProxyStorage, BucketPlayerInventoryInsertableStorage, CompositeStorageImpl, ExternalStorage, LimitedStorageImpl, NoopStorage, PlatformStorageNetworkComponent, PriorityStorage, RootStorageImpl, StateTrackedStorage, StorageImpl, com.refinedmods.refinedstorage.api.network.impl.storage.StorageNetworkComponentImpl, TrackedStorageImpl

@API(status=STABLE, since="2.0.0-milestone.1.2") public interface InsertableStorage
Represents a storage that can be inserted into.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    insert(ResourceKey resource, long amount, Action action, Actor actor)
    Inserts a resource into a storage.
  • Method Details

    • insert

      long insert(ResourceKey resource, long amount, Action action, Actor actor)
      Inserts a resource into a storage.
      Parameters:
      resource - the resource, may not be null
      amount - the amount, must be larger than 0
      action - the mode of insertion
      actor - the source
      Returns:
      the amount inserted