Class BucketPlayerInventoryInsertableStorage
java.lang.Object
com.refinedmods.refinedstorage.common.storage.BucketPlayerInventoryInsertableStorage
- All Implemented Interfaces:
InsertableStorage
-
Constructor Summary
ConstructorsConstructorDescriptionBucketPlayerInventoryInsertableStorage
(net.minecraft.world.entity.player.Inventory playerInventory, Storage emptyBucketStorage, boolean mayDropFilledBucket) -
Method Summary
Modifier and TypeMethodDescriptionlong
insert
(ResourceKey resource, long amount, Action action, Actor actor) Inserts a resource into a storage.
-
Constructor Details
-
BucketPlayerInventoryInsertableStorage
public BucketPlayerInventoryInsertableStorage(net.minecraft.world.entity.player.Inventory playerInventory, Storage emptyBucketStorage, boolean mayDropFilledBucket)
-
-
Method Details
-
insert
Description copied from interface:InsertableStorage
Inserts a resource into a storage.- Specified by:
insert
in interfaceInsertableStorage
- Parameters:
resource
- the resource, may not be nullamount
- the amount, must be larger than 0action
- the mode of insertionactor
- the source- Returns:
- the amount inserted
-