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 TypeMethodDescriptionlong
extract
(ResourceKey resource, long amount, Action action, Actor actor) Extracts a resource from a storage.com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode
long
insert
(ResourceKey resource, long amount, Action action, Actor actor) Inserts a resource into a storage.iterator()
-
Constructor Details
-
Method Details
-
extract
Description copied from interface:ExtractableStorage
Extracts a resource from a storage.- Specified by:
extract
in 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: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
-
iterator
- Specified by:
iterator
in interfaceExternalStorageProvider
-
getInterface
@Nullable public com.refinedmods.refinedstorage.api.network.impl.node.iface.InterfaceNetworkNode getInterface()- Specified by:
getInterface
in interfacecom.refinedmods.refinedstorage.api.network.impl.node.iface.externalstorage.InterfaceExternalStorageProvider
-