Class FluidResourceContainerInsertStrategy
java.lang.Object
com.refinedmods.refinedstorage.common.support.resource.FluidResourceContainerInsertStrategy
- All Implemented Interfaces:
ResourceContainerInsertStrategy
public class FluidResourceContainerInsertStrategy
extends Object
implements ResourceContainerInsertStrategy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.refinedmods.refinedstorage.common.api.support.resource.ResourceContainerInsertStrategy
ResourceContainerInsertStrategy.ConversionInfo, ResourceContainerInsertStrategy.InsertResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConversionInfo
(ResourceKey resource, net.minecraft.world.item.ItemStack carriedStack) insert
(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount)
-
Constructor Details
-
FluidResourceContainerInsertStrategy
public FluidResourceContainerInsertStrategy()
-
-
Method Details
-
insert
public Optional<ResourceContainerInsertStrategy.InsertResult> insert(net.minecraft.world.item.ItemStack container, ResourceAmount resourceAmount) - Specified by:
insert
in interfaceResourceContainerInsertStrategy
- Parameters:
container
- the container to insert the resource intoresourceAmount
- the resource to insert into the container- Returns:
- the result of the insertion, if any. If no result is present, the next insertion strategy will be tried.
-
getConversionInfo
public Optional<ResourceContainerInsertStrategy.ConversionInfo> getConversionInfo(ResourceKey resource, net.minecraft.world.item.ItemStack carriedStack) - Specified by:
getConversionInfo
in interfaceResourceContainerInsertStrategy
-