Class BucketPlayerInventoryInsertableStorage

java.lang.Object
com.refinedmods.refinedstorage.common.storage.BucketPlayerInventoryInsertableStorage
All Implemented Interfaces:
InsertableStorage

public class BucketPlayerInventoryInsertableStorage extends Object implements InsertableStorage
  • Constructor Details

    • BucketPlayerInventoryInsertableStorage

      public BucketPlayerInventoryInsertableStorage(net.minecraft.world.entity.player.Inventory playerInventory, Storage emptyBucketStorage, boolean mayDropFilledBucket)
  • Method Details

    • insert

      public long insert(ResourceKey resource, long amount, Action action, Actor actor)
      Description copied from interface: InsertableStorage
      Inserts a resource into a storage.
      Specified by:
      insert in interface InsertableStorage
      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