Class InterfaceProxyExternalStorageProvider
java.lang.Object
com.refinedmods.refinedstorage.common.iface.InterfaceProxyExternalStorageProvider
- All Implemented Interfaces:
com.refinedmods.refinedstorage.api.network.impl.node.iface.externalstorage.InterfaceExternalStorageProvider,ExternalStorageProvider,ExtractableStorage,InsertableStorage
public class InterfaceProxyExternalStorageProvider
extends Object
implements com.refinedmods.refinedstorage.api.network.impl.node.iface.externalstorage.InterfaceExternalStorageProvider
-
Constructor Summary
ConstructorsConstructorDescriptionInterfaceProxyExternalStorageProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionlongextract(ResourceKey resource, long amount, Action action, Actor actor) Extracts a resource from a storage.com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNodelonginsert(ResourceKey resource, long amount, Action action, Actor actor) Inserts a resource into a storage.iterator()
-
Constructor Details
-
InterfaceProxyExternalStorageProvider
public InterfaceProxyExternalStorageProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
-
-
Method Details
-
extract
Description copied from interface:ExtractableStorageExtracts a resource from a storage.- Specified by:
extractin interfaceExtractableStorage- Parameters:
resource- the resource, may not be nullamount- the amount, must be larger than 0action- the mode of extractionactor- the source- Returns:
- the amount extracted
-
insert
Description copied from interface:InsertableStorageInserts a resource into a storage.- Specified by:
insertin 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
-
iterator
- Specified by:
iteratorin interfaceExternalStorageProvider
-
getInterface
@Nullable public com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode getInterface()- Specified by:
getInterfacein interfacecom.refinedmods.refinedstorage.api.network.impl.node.iface.externalstorage.InterfaceExternalStorageProvider
-